Files
TitularesApp/frontend/proxy/nginx.conf

37 lines
1.2 KiB
Nginx Configuration File
Raw Normal View History

2025-10-29 15:50:55 -03:00
# /frontend/proxy/nginx.conf
2025-10-29 14:33:40 -03:00
server {
listen 80;
2025-10-29 15:50:55 -03:00
server_name localhost;
location / {
proxy_pass http://titulares-frontend:80;
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-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
}
2025-10-29 14:33:40 -03:00
location /api/ {
2025-10-29 15:50:55 -03:00
proxy_pass http://titulares-api:8080;
2025-10-29 14:33:40 -03:00
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-Proto $scheme;
2025-10-29 15:50:55 -03:00
proxy_set_header X-Forwarded-Host $host;
2025-10-29 14:33:40 -03:00
}
2025-10-29 15:50:55 -03:00
location /titularesHub/ {
proxy_pass http://titulares-api:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
2025-10-29 14:47:21 -03:00
proxy_set_header Host $host;
2025-10-29 15:50:55 -03:00
proxy_cache_bypass $http_upgrade;
2025-10-29 14:47:21 -03:00
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
2025-10-29 15:50:55 -03:00
proxy_set_header X-Forwarded-Host $host;
2025-10-29 14:33:40 -03:00
}
}