Revert "fix: switch Ntfy to native auth, remove Authentik ForwardAuth"
This reverts commit 2610b5a430bf0738df9749096b626e8cc965c400.
This commit is contained in:
parent
1fedfcca01
commit
15894dfc1b
@ -8,17 +8,26 @@ services:
|
|||||||
- serve
|
- serve
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/appdata/ntfy/data:/var/lib/ntfy
|
- /mnt/appdata/ntfy/data:/var/lib/ntfy
|
||||||
- /mnt/appdata/ntfy/server.yml:/etc/ntfy/server.yml:ro
|
|
||||||
networks:
|
networks:
|
||||||
- proxy-net
|
- proxy-net
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
# Web UI — protected by Authentik
|
||||||
- "traefik.http.routers.ntfy.rule=Host(`ntfy.castaldifamily.com`)"
|
- "traefik.http.routers.ntfy.rule=Host(`ntfy.castaldifamily.com`)"
|
||||||
- "traefik.http.routers.ntfy.entrypoints=websecure"
|
- "traefik.http.routers.ntfy.entrypoints=websecure"
|
||||||
- "traefik.http.routers.ntfy.tls=true"
|
- "traefik.http.routers.ntfy.tls=true"
|
||||||
- "traefik.http.routers.ntfy.tls.certresolver=cloudflare"
|
- "traefik.http.routers.ntfy.tls.certresolver=cloudflare"
|
||||||
|
- "traefik.http.routers.ntfy.middlewares=authentik-auth@file"
|
||||||
|
- "traefik.http.routers.ntfy.service=ntfy"
|
||||||
|
- "traefik.http.routers.ntfy.priority=1"
|
||||||
|
# Publish endpoint — POST only, no auth, validated by Ntfy access token
|
||||||
|
- "traefik.http.routers.ntfy-publish.rule=Host(`ntfy.castaldifamily.com`) && Method(`POST`)"
|
||||||
|
- "traefik.http.routers.ntfy-publish.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.ntfy-publish.tls=true"
|
||||||
|
- "traefik.http.routers.ntfy-publish.tls.certresolver=cloudflare"
|
||||||
|
- "traefik.http.routers.ntfy-publish.service=ntfy"
|
||||||
|
- "traefik.http.routers.ntfy-publish.priority=10"
|
||||||
- "traefik.http.services.ntfy.loadbalancer.server.port=80"
|
- "traefik.http.services.ntfy.loadbalancer.server.port=80"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy-net:
|
proxy-net:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user