| pid /tmp/nginx/nginx.pid; |
|
|
| events { |
| worker_connections 1024; |
| } |
|
|
| http { |
| client_body_temp_path /tmp/nginx/client_body; |
| proxy_temp_path /tmp/nginx/proxy; |
| fastcgi_temp_path /tmp/nginx/fastcgi; |
| uwsgi_temp_path /tmp/nginx/uwsgi; |
| scgi_temp_path /tmp/nginx/scgi; |
|
|
| server { |
| listen 7860; |
|
|
| location /api/ { |
| proxy_pass http://127.0.0.1:8000/; |
| proxy_set_header Host $host; |
| proxy_set_header X-Real-IP $remote_addr; |
| } |
|
|
| location / { |
| proxy_pass http://127.0.0.1:8501; |
| proxy_set_header Host $host; |
| proxy_set_header X-Real-IP $remote_addr; |
| proxy_http_version 1.1; |
| proxy_set_header Upgrade $http_upgrade; |
| proxy_set_header Connection "upgrade"; |
| } |
| } |
| } |
|
|