add serve

This commit is contained in:
2025-01-15 18:05:41 -06:00
parent 529334ed48
commit 87aaad3c06
2 changed files with 21 additions and 0 deletions

View File

@@ -10,10 +10,12 @@ services:
- TS_STATE_DIR=/var/lib/tailscale
- TS_ENABLE_METRICS=true
- TS_HOSTNAME=traefik-ps10rp
- TS_SERVE_CONFIG=/config/serve.json
network_mode: service:traefik
restart: always
volumes:
- tailscale:/var/lib/tailscale
- ${PWD}/serve.json:/config/serve.json
devices:
- /dev/net/tun:/dev/net/tun

View File

@@ -0,0 +1,19 @@
{
"TCP": {
"443": {
"HTTPS": true
}
},
"Web": {
"${TS_CERT_DOMAIN}:443": {
"Handlers": {
"/": {
"Proxy": "http://127.0.0.1:8080"
}
}
}
},
"AllowFunnel": {
"${TS_CERT_DOMAIN}:443": true
}
}