mitai-jinkendo/frontend/nginx.conf

17 lines
339 B
Nginx Configuration File
Raw Normal View History

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location /api/ {
proxy_pass http://backend:8000/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 20M;
}
location / {
try_files $uri $uri/ /index.html;
}
}