Files
Phx-Yuri/nginx/includes/pgadmin.conf
Yuri Lima 005aedaba3 Enhance Docker Compose and NGINX configurations
- Added new environment variables for connection pooling in the .env file.
- Updated Docker Compose to ensure consistent naming conventions for containers and added health checks.
- Increased timeout settings in NGINX configuration for file uploads.
- Improved pgAdmin reverse proxy configuration to handle path rewrites.
- Added migration SQL file and updated helper documentation for database operations.
2025-07-28 13:49:55 +00:00

18 lines
669 B
Plaintext

# pgAdmin reverse proxy (under subpath)
location /pgadmin4 {
proxy_pass http://pgadmin4-ui/;
proxy_set_header X-Script-Name /pgadmin4;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $forwarded_proto;
# Include headers for proxying
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $forwarded_proto;
# End of headers
proxy_redirect off;
# ⚠️ Rewrite required to remove /pgadmin4 from the path
rewrite ^/pgadmin4(/.*)$ $1 break;
}