Files
latosa-escrima/nginx.conf
2025-01-14 14:10:40 +01:00

20 lines
699 B
Nginx Configuration File

server {
server_name TO BE SET;
location / {
proxy_pass http://localhost:FRONTEND_PORT; # Set frontend port based on what you have exposed
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;
}
location /api {
proxy_pass http://localhost:BACKEND_PORT; # Set backend port based on what you have exposed
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;
}
}