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

Traefik Dashboard dynamic config http(s) correction #3

Open
ClusterDuckster opened this issue Sep 4, 2024 · 0 comments
Open

Traefik Dashboard dynamic config http(s) correction #3

ClusterDuckster opened this issue Sep 4, 2024 · 0 comments

Comments

@ClusterDuckster
Copy link

Hi, I hope this is the right place?

under https://coolify.io/docs/knowledge-base/traefik/dashboard the example dynamic configuration just configures https, but in the line below the example link is using http, took me a while to figure out what I was doing wrong.

Quick fix is to change the example link to use https, but I think a better fix would be to change the dynamic config to also do a http to https redirect, the same way it is done by default on all coolify resources.

I'm currently using this config:

http:
  middlewares:
    auth:
      basicAuth:
        users:
          - '<GENERATED_USERNAME>:<GENERATED_PASSWORD>'
  routers:
    dashboard-http:
      rule: Host(`<DOMAIN_FOR_TRAEFIK>`)
      entrypoints:
        - http
      service: api@internal
      middlewares:
        - redirect-to-https
    dashboard-https:
      rule: Host(`<DOMAIN_FOR_TRAEFIK>`)
      entrypoints:
        - https
      service: api@internal
      tls: true
      middlewares:
        - auth

I would love to make a PR if you tell me what you would prefer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant