Skip to content
Permalink
Browse files

add redirect http->https option to traefik proxy config

make entryPoints config consistent between proxy and proxy-global
  • Loading branch information...
imjosh committed Jun 17, 2019
1 parent 8fe8b18 commit b3054288e835539a785bfdf97f709f338b39d00c
Showing with 7 additions and 3 deletions.
  1. +3 −1 stack-proxy-global.yml
  2. +4 −2 stack-proxy.yml
@@ -50,7 +50,9 @@ services:
- --consul.prefix=traefik
- --defaultentrypoints=http,https
- --entryPoints=Name:https Address::443 TLS
- --entryPoints=Name:http Address::80
- --entryPoints=Name:http Address::80 # don't force HTTPS
# - --entryPoints=Name:http Address::80 Redirect.EntryPoint:https # force HTTPS
## optional LetsEncrypt settings
# - --acme
# - --acme.email=${TRAEFIK_ACME_EMAIL}
# # TODO: envvar for email and default domain
@@ -36,15 +36,17 @@ services:
- --docker.watch
- --api
- --defaultentrypoints=http,https
- --entryPoints=Name:https Address::443 TLS
- --entryPoints=Name:http Address::80 # don't force HTTPS
# - --entryPoints=Name:http Address::80 Redirect.EntryPoint:https # force HTTPS
## optional LetsEncrypt settings
# - --acme
# - --acme.email=${TRAEFIK_ACME_EMAIL}
# # TODO: envvar for email and default domain
# - --acme.httpchallenge
# - --acme.httpchallenge.entrypoint=http
# - --acme.onhostrule=true
# - --acme.entrypoint=https
# - --entryPoints=Name:https Address::443 TLS
# - --entryPoints=Name:http Address::80
# - --acme.storage=/etc/traefik/acme/acme.json
# - --acme.acmelogging
# - --acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory

0 comments on commit b305428

Please sign in to comment.
You can’t perform that action at this time.