Fehlerseiten: 404/500 Middleware (v3.6 errors + nginx errorpages + file-Provider)
This commit is contained in:
+25
-1
@@ -1,4 +1,21 @@
|
||||
services:
|
||||
|
||||
errorpages:
|
||||
image: nginx:1.27-alpine
|
||||
container_name: errorpages
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- "80"
|
||||
volumes:
|
||||
- ./web:/usr/share/nginx/html:ro
|
||||
command:
|
||||
- nginx
|
||||
- -g
|
||||
- "daemon off;"
|
||||
networks:
|
||||
- traefik-net
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
traefik:
|
||||
image: traefik:3.6 # Gepinnt auf Version 3.6
|
||||
container_name: traefik
|
||||
@@ -20,13 +37,20 @@ services:
|
||||
- traefik-net
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# Dashboard Router - Korrigierte Syntax für Host-Regel
|
||||
- "traefik.http.routers.dashboard.rule=Host(`traefik.ljh31.de`)"
|
||||
- "traefik.http.routers.dashboard.entrypoints=websecure"
|
||||
- "traefik.http.routers.dashboard.tls=true"
|
||||
- "traefik.http.routers.dashboard.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.dashboard.service=api@internal"
|
||||
|
||||
# Middleware Auswahl: Aktuell ist Basic Auth aktiv
|
||||
- "traefik.http.routers.dashboard.middlewares=dashboard-auth"
|
||||
|
||||
# Basic Auth Definition
|
||||
- "traefik.http.middlewares.dashboard-auth.basicauth.users=admin:$$apr1$$xyz$$..."
|
||||
|
||||
# Keycloak ForwardAuth Middleware (bereitgestellt, aber aktuell nicht im Router zugewiesen)
|
||||
- "traefik.http.middlewares.keycloak-oauth2.forwardauth.address=http://<OAUTH2_PROXY_URL>/oauth2/auth"
|
||||
- "traefik.http.middlewares.keycloak-oauth2.forwardauth.trustForwardHeader=true"
|
||||
- "traefik.http.middlewares.keycloak-oauth2.forwardauth.authResponseHeaders=X-Auth-Request-User,X-Auth-Request-Email"
|
||||
@@ -38,4 +62,4 @@ services:
|
||||
|
||||
networks:
|
||||
traefik-net:
|
||||
driver: bridge
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user