removed http router, https redirect handled by traefik
This commit is contained in:
1 parent
f15daabb89
commit
0839e1fad9
1 file changed
+1
-6
+1
-6
@@ -8,12 +8,7 @@ services:
|
|||||||
- 80
|
- 80
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
### Section HTTP
|
# HTTPS
|
||||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http
|
|
||||||
# redirect to HTTPS only
|
|
||||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.middlewares=http-to-https
|
|
||||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.rule=Host(`${TRAEFIK_MATCHRULE}`)
|
|
||||||
### Section HTTPS
|
|
||||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
|
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
|
||||||
# configure the exposed service
|
# configure the exposed service
|
||||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=Host(`${TRAEFIK_MATCHRULE}`)
|
- traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=Host(`${TRAEFIK_MATCHRULE}`)
|
||||||
|
|||||||
Reference in new issue
Block a user