-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.hicad-r.conf
More file actions
33 lines (28 loc) · 872 Bytes
/
nginx.hicad-r.conf
File metadata and controls
33 lines (28 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Example Nginx reverse proxy for HiCAD-R.
# Replace hicad.example.com and upstream port as needed.
upstream hicad_r_app {
server 127.0.0.1:3000;
keepalive 32;
}
server {
listen 80;
server_name hicad.example.com;
client_max_body_size 20m;
location /api/ai/generate {
proxy_pass http://hicad_r_app;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 300s;
}
location / {
proxy_pass http://hicad_r_app;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}