nex_animation/frontend/nginx.conf

9 lines
424 B
Nginx Configuration File

server {
listen 80; server_name _; root /usr/share/nginx/html; index index.html;
location /api/ { proxy_pass http://api:8000/api/; proxy_set_header Host $host; }
location /media/ { proxy_pass http://api:8000/media/; proxy_set_header Host $host; }
location /docs { proxy_pass http://api:8000/docs; }
location /openapi.json { proxy_pass http://api:8000/openapi.json; }
location / { try_files $uri $uri/ /index.html; }
}