Refactor pgAdmin configuration to streamline routing and middleware settings
This commit is contained in:
@@ -219,8 +219,6 @@ services:
|
|||||||
# Trust proxy headers
|
# Trust proxy headers
|
||||||
PGADMIN_CONFIG_PROXY_X_HOST_COUNT: '1'
|
PGADMIN_CONFIG_PROXY_X_HOST_COUNT: '1'
|
||||||
PGADMIN_CONFIG_PROXY_X_PREFIX_COUNT: '1'
|
PGADMIN_CONFIG_PROXY_X_PREFIX_COUNT: '1'
|
||||||
# Fix routing issues
|
|
||||||
SCRIPT_NAME: '/pgadmin4'
|
|
||||||
volumes:
|
volumes:
|
||||||
- pgadmin_data:/var/lib/pgadmin
|
- pgadmin_data:/var/lib/pgadmin
|
||||||
labels:
|
labels:
|
||||||
@@ -228,8 +226,5 @@ services:
|
|||||||
- traefik.http.routers.pgadmin.rule=Host(`pgadmin.gate.${DOMAIN}`)
|
- traefik.http.routers.pgadmin.rule=Host(`pgadmin.gate.${DOMAIN}`)
|
||||||
- traefik.http.routers.pgadmin.entrypoints=websecure
|
- traefik.http.routers.pgadmin.entrypoints=websecure
|
||||||
- traefik.http.routers.pgadmin.tls.certresolver=le
|
- traefik.http.routers.pgadmin.tls.certresolver=le
|
||||||
|
- traefik.http.routers.pgadmin.middlewares=security-headers
|
||||||
- traefik.http.services.pgadmin.loadbalancer.server.port=80
|
- traefik.http.services.pgadmin.loadbalancer.server.port=80
|
||||||
# Add headers for proper proxy handling
|
|
||||||
- traefik.http.middlewares.pgadmin-headers.headers.customRequestHeaders.X-Script-Name=/pgadmin4
|
|
||||||
- traefik.http.middlewares.pgadmin-headers.headers.customRequestHeaders.X-Scheme=https
|
|
||||||
- traefik.http.routers.pgadmin.middlewares=pgadmin-headers
|
|
||||||
|
|||||||
Reference in New Issue
Block a user