Files
dtic-DIIAA/servicios/sysacad/nginx.conf
T

41 lines
1.3 KiB
Nginx Configuration File

events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
server {
listen 80;
server_name localhost;
rewrite ^/BoletoWS/sube_actualizar_solicitud/([_0-9a-z-]+)/([_0-9a-z-]+)$ /BoletoWS/sube_actualizar_solicitud?facultad=$1&tid=$2 last;
# API: quita el prefijo /api y reenvía al backend real
location /api/ {
proxy_pass http://sysacad-ui:3000/api/;
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;
}
# App: todo lo demás a Next en 3000
location / {
proxy_pass http://sysacad-ui:3000;
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;
}
}
}