Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config option to enable TLS on all routers by default #7768

Closed
mikesir87 opened this issue Jan 15, 2021 · 2 comments
Closed

Config option to enable TLS on all routers by default #7768

mikesir87 opened this issue Jan 15, 2021 · 2 comments

Comments

@mikesir87
Copy link
Contributor

Feature Request

The problem I'm facing

I have a Traefik config that redirects all insecure traffic to a secure entrypoint and also has a default certificate set. While using the Docker provider, I have to specify a label to enable TLS on the router (traefik.http.routers.my-app.tls=true). Without this enabled, requests to an app will be redirected to HTTPS, but I'll get a 404 because the router isn't configured to use TLS. Unless I look at the Traefik dashboard and see a router, but no TLS, it isn't clear why I'm getting a 404. I spent quite a bit of time thinking I didn't have the provider configured correctly or that I messed up the router rule.

The Feature Request

It would be nice to provide configuration to indicate that all routers should have TLS enabled by default. That way, I don't even need to specify the TLS label.

Current Workaround

Simply specify the label on every container.

@ldez
Copy link
Member

ldez commented Jan 15, 2021

Hello,

this option already exists: https://doc.traefik.io/traefik/v2.3/routing/entrypoints/#tls

    command:
     # ...
      - --entrypoints.websecure.address=:443
      - --entrypoints.websecure.http.tls=true
     # ...

@ldez ldez closed this as completed Jan 15, 2021
@ldez ldez added kind/question a question and removed status/0-needs-triage labels Jan 15, 2021
@mikesir87
Copy link
Contributor Author

Ok. Well, thanks for the quick response! I did some looking and asking around, but couldn't find it. Thanks again!

@traefik traefik locked and limited conversation to collaborators Feb 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants