Traefik + ntfy redirect curl

Hello, recently I have moved from nginx to traefik and have found an “issue” that I would like to have fixed.

Originally with the nginx config I had a block that allowed for ntfy to work with curl without having to specify https:// but with traefik this doesn’t work and throws out Permanent Redirect when trying to send a notification using curl.

This are currently my traefik settings for ntfy using labels:


<span style="color:#323232;">...
</span><span style="color:#323232;">    </span><span style="color:#63a35c;">labels</span><span style="color:#323232;">:
</span><span style="color:#323232;">      - </span><span style="color:#183691;">traefik.http.routers.ntfy.rule=Host(`ntfy.cronyakatsuki.xyz`)
</span><span style="color:#323232;">      - </span><span style="color:#183691;">traefik.http.routers.ntfy.tls=true
</span><span style="color:#323232;">      - </span><span style="color:#183691;">traefik.http.routers.ntfy.entrypoints=websecure
</span><span style="color:#323232;">      - </span><span style="color:#183691;">traefik.http.routers.ntfy.tls.certresolver=lets-encrypt
</span><span style="color:#323232;">      - </span><span style="color:#183691;">traefik.port=80
</span><span style="color:#323232;">...
</span>

Is there any way to setup traefik and ntfy to be able to send notification without having to specific the protocol or is there no way?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • selfhosted@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #