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 · 1 comment
Open

Traefik Dashboard dynamic config http(s) correction #3

ClusterDuckster opened this issue Sep 4, 2024 · 1 comment
Labels
✨ Enhancement Suggestions to improve or add detail to existing docs. 🐢 Low Priority Non-urgent tasks or updates for documentation. 💤 Stale Inactive for a while, may need to be closed. ⏳ Waiting for feedback Awaiting a response or more info from the author.

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 :)

@peaklabs-dev
Copy link
Member

A PR would be nice.

@ShadowArcanist ShadowArcanist added ✨ Enhancement Suggestions to improve or add detail to existing docs. ⏳ Waiting for feedback Awaiting a response or more info from the author. 🐢 Low Priority Non-urgent tasks or updates for documentation. 💤 Stale Inactive for a while, may need to be closed. labels Feb 10, 2025
@ShadowArcanist ShadowArcanist moved this to To Do (Low Priority) in Coolify Documentation Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Enhancement Suggestions to improve or add detail to existing docs. 🐢 Low Priority Non-urgent tasks or updates for documentation. 💤 Stale Inactive for a while, may need to be closed. ⏳ Waiting for feedback Awaiting a response or more info from the author.
Projects
Status: To Do (Low Priority)
Development

No branches or pull requests

3 participants