Switch to web-alt Traefik entrypoint

This commit is contained in:
2024-04-01 19:45:24 -03:00
parent 0c98c27dc1
commit a51027ff50
+7 -11
View File
@@ -19,14 +19,10 @@ services:
# TCP router, handle streaming to Icecast
# !! Works only with HostSNI(*) and TLS off !!
- 'traefik.tcp.routers.${STACK_NAME}-tcp.rule=HostSNI(`*`)'
- 'traefik.tcp.routers.${STACK_NAME}-tcp.entrypoints=web'
- 'traefik.tcp.routers.${STACK_NAME}-tcp.entrypoints=web-alt'
- 'traefik.tcp.routers.${STACK_NAME}-tcp.tls=false'
- 'traefik.tcp.routers.${STACK_NAME}-tcp.service=${STACK_NAME}-tcp'
- 'traefik.tcp.services.${STACK_NAME}-tcp.loadbalancer.server.port=8000'
# HTTP router, redirect to HTTPS
- "traefik.http.routers.${STACK_NAME}-insecure.rule=Host(`${DOMAIN}`)"
- 'traefik.http.routers.${STACK_NAME}-insecure.entrypoints=http'
- 'traefik.http.routers.${STACK_NAME}-insecure.middlewares=redirect-secure'
# HTTPS router
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8000"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
@@ -37,12 +33,12 @@ services:
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version="
# # healthcheck:
# # test: ["CMD", "curl", "-f", "http://localhost"]
# # interval: 30s
# # timeout: 10s
# # retries: 10
# # start_period: 1m
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8000"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
networks:
proxy: