Files
chore/web/vue-app/nginx.conf
2025-12-08 21:01:12 -05:00

37 lines
1.0 KiB
Nginx Configuration File

events {}
http {
include /etc/nginx/mime.types; # Ensure this line is present
default_type application/octet-stream;
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
types {
application/javascript js mjs;
# Other types...
}
location /api/ {
proxy_pass http://chore-app-backend:5000/;
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 /events/ {
proxy_pass http://chore-app-backend:5000/;
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 / {
try_files $uri $uri/ /index.html;
}
}
}