Files
medassist-ng/frontend/nginx.conf
T

27 lines
626 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Allow larger file uploads (for medication images)
client_max_body_size 10M;
location / {
try_files $uri /index.html;
}
location /api/ {
proxy_pass http://backend: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;
# Timeout for uploads
proxy_read_timeout 60s;
proxy_send_timeout 60s;
}
}