add serve
This commit is contained in:
@@ -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
|
||||
|
||||
|
19
hosts/ps10rp/traefik/serve.json
Normal file
19
hosts/ps10rp/traefik/serve.json
Normal 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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user