-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnginx.conf
More file actions
39 lines (30 loc) · 1.04 KB
/
nginx.conf
File metadata and controls
39 lines (30 loc) · 1.04 KB
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
34
35
36
37
38
# proxy_cache_path /var/cache/nginx/webcache keys_zone=corpus_cache:10m;
server {
listen 80;
listen [::]:80;
server_name localhost;
resolver 127.0.0.11 ipv6=off;
# proxy_cache corpus_cache;
# error_log stderr debug;
# access_log /dev/stdout main;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri$1$is_args$args @app;
}
location @app {
# location ~ ^/(persist|query|debrief|docs|openapi.json) {
proxy_set_header Host $http_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;
# Port is internal to service container
# proxy_pass $scheme://fastapi:8000$uri$1$is_args$args;
proxy_pass $scheme://api:8000$uri$is_args$args;
}
#error_page 404 /404.html;
# error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# root /usr/share/nginx/html;
# }
}