removed http router, https redirect handled by traefik
This commit is contained in:
1 parent
50bb80bbb6
commit
a693e907f5
1 file changed
+1
-7
+1
-7
@@ -12,13 +12,7 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
- traefik.docker.network=traefik-proxy
|
- traefik.docker.network=traefik-proxy
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
### Section HTTP
|
# HTTPS
|
||||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http
|
|
||||||
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=8080
|
|
||||||
# redirect to HTTPS only
|
|
||||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.middlewares=http-to-https
|
|
||||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.rule=Host(`${TRAEFIK_HOST}`)
|
|
||||||
### Section HTTPS
|
|
||||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
|
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
|
||||||
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=3000
|
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=3000
|
||||||
# configure the exposed service
|
# configure the exposed service
|
||||||
|
|||||||
Reference in new issue
Block a user