Files
tugas1_rpl/nginx/default.conf
T
2026-11-14 19:43:01 +08:00

23 lines
405 B
Plaintext

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Add this line to increase the upload limit to 10MB
client_max_body_size 10M;
location / {
try_files $uri $uri/ =404;
}
location /api/ {
proxy_pass http://api:3000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}