add serve

This commit is contained in:
2025-01-15 17:47:41 -06:00
parent ebd012e460
commit bcbafb6f2f
2 changed files with 22 additions and 1 deletions

View File

@@ -10,10 +10,12 @@ services:
- TS_STATE_DIR=/var/lib/tailscale
- TS_ENABLE_METRICS=true
- TS_HOSTNAME=homepage-ps10rp
- TS_SERVE_CONFIG=/config/serve.json
network_mode: service:homepage
restart: always
volumes:
- tailscale:/var/lib/tailscale
- ${PWD}/serve.json:/config/serve.json
devices:
- /dev/net/tun:/dev/net/tun
@@ -43,7 +45,7 @@ services:
internal: null
restart: always
volumes:
- ./homepage_config:/app/config
- ${PWD}/homepage_config:/app/config
networks:
internal:

View File

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