Files
GenAIExamples/EdgeCraftRAG/ui/vue/nginx.conf
Zhu Yongbo 5a50ae0471 Add new UI/new features for EC-RAG (#1665)
Signed-off-by: Zhu, Yongbo <yongbo.zhu@intel.com>
2025-03-20 10:46:01 +08:00

57 lines
1.5 KiB
Nginx Configuration File

worker_processes 1;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
client_max_body_size 50M;
sendfile on;
keepalive_timeout 65;
server {
listen 8082;
server_name _;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
add_header Cache-Control "no-cache";
try_files $uri $uri/ /index.html;
}
location /v1/ {
proxy_pass http://server:16010;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
location /home/user/ {
proxy_pass http://server:16010;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
location /v1/chatqna {
proxy_pass http://ecrag:16011;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 600s;
gzip off;
proxy_set_header Host ecrag:16011;
proxy_set_header X-Accel-Buffering no;
proxy_set_header X-Real-IP $remote_addr;
chunked_transfer_encoding on;
}
}
}