generic-chatbot-admin / devops /nginx.default.conf
muryshev's picture
fix
1f60a7d
raw
history blame
679 Bytes
server {
listen 7860;
server_name localhost;
client_body_temp_path /tmp/nginx/client_temp 1 2;
proxy_temp_path /tmp/nginx/proxy_temp 1 2;
fastcgi_temp_path /tmp/nginx/fastcgi_temp 1 2;
uwsgi_temp_path /tmp/nginx/uwsgi_temp 1 2;
scgi_temp_path /tmp/nginx/scgi_temp 1 2;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $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;
}
}