23 lines
538 B
Nginx Configuration File
23 lines
538 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://backend:3004/api/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
|
|
# SSE specific settings
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
proxy_set_header Connection '';
|
|
chunked_transfer_encoding off;
|
|
proxy_read_timeout 24h;
|
|
}
|
|
} |