fix(env): Rename HOSTNAME to APP_HOSTNAME to avoid conflicts and update related configurations
Some checks failed
/ validate-docker-compose (push) Has been cancelled
Some checks failed
/ validate-docker-compose (push) Has been cancelled
This commit is contained in:
@@ -56,19 +56,19 @@ services:
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
# Rule for Authelia portal itself (handles internal paths like /api, /logout etc.)
|
||||
- traefik.http.routers.authelia.rule=Host(`${HOSTNAME}`)
|
||||
- traefik.http.routers.authelia.rule=PathPrefix(`/`)
|
||||
- traefik.http.routers.authelia.entrypoints=web
|
||||
- traefik.http.routers.authelia.priority=100 # High priority to catch root path
|
||||
- traefik.http.services.authelia.loadbalancer.server.port=9091
|
||||
# Define the forwardAuth middleware
|
||||
- traefik.http.middlewares.authelia-auth.forwardAuth.address=http://authelia:9091/api/verify?rd=https://${HOSTNAME}/
|
||||
- traefik.http.middlewares.authelia-auth.forwardAuth.address=http://authelia:9091/api/verify?rd=https://${APP_HOSTNAME}/
|
||||
- traefik.http.middlewares.authelia-auth.forwardAuth.trustForwardHeader=true
|
||||
- traefik.http.middlewares.authelia-auth.forwardAuth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email
|
||||
# Homepage labels for Authelia itself (optional, but can be nice)
|
||||
- homepage.group=Security
|
||||
- homepage.name=Authelia
|
||||
- homepage.icon=authelia.png # You might need to add this icon
|
||||
- homepage.href=https://${HOSTNAME}/ # Link to the login portal
|
||||
- homepage.href=https://${APP_HOSTNAME}/ # Link to the login portal
|
||||
- homepage.description=Authentication Portal
|
||||
sonarr:
|
||||
image: lscr.io/linuxserver/sonarr
|
||||
@@ -532,7 +532,7 @@ services:
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
# Rule for homepage, now at /home, needs auth
|
||||
- traefik.http.routers.homepage.rule=Host(`${HOSTNAME}`) && PathPrefix(`/home`)
|
||||
- traefik.http.routers.homepage.rule=PathPrefix(`/home`)
|
||||
- traefik.http.routers.homepage.entrypoints=web
|
||||
- traefik.http.routers.homepage.priority=10 # Lower priority than Authelia's root rule
|
||||
- traefik.http.middlewares.homepage-stripprefix.stripPrefix.prefixes=/home
|
||||
|
||||
Reference in New Issue
Block a user