Spaces:
Sleeping
Sleeping
| server { | |
| listen 7860; | |
| server_name _; | |
| client_max_body_size 100M; | |
| proxy_read_timeout 300s; | |
| proxy_send_timeout 300s; | |
| location /api/ { | |
| proxy_pass http://localhost:8000/api/; | |
| proxy_http_version 1.1; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header Connection ""; | |
| } | |
| location /docs { | |
| proxy_pass http://localhost:8000/docs; | |
| } | |
| location / { | |
| proxy_pass http://localhost:3000; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| proxy_set_header Host $host; | |
| } | |
| } | |