| server { |
| listen 7860; |
|
|
| |
| root /home/pn/app; |
| index index.html; |
| server_name _; |
|
|
| location / { |
| try_files $uri /index.html; |
| } |
|
|
| |
| location /api/ { |
| proxy_pass https://muryshev-generic-chatbot-backend.hf.space; |
| proxy_set_header Host $host; |
| proxy_set_header X-Real-IP $remote_addr; |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| proxy_set_header X-Forwarded-Proto $scheme; |
| } |
|
|
| |
| client_body_temp_path /tmp/nginx/client_temp; |
| proxy_temp_path /tmp/nginx/proxy_temp; |
| fastcgi_temp_path /tmp/nginx/fastcgi_temp; |
| uwsgi_temp_path /tmp/nginx/uwsgi_temp; |
| scgi_temp_path /tmp/nginx/scgi_temp; |
| } |
|
|