Skip to content

Commit 4931013

Browse files
committed
Missed nginx template
1 parent eaba22e commit 4931013

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

etc/nginx/colocus.conf.template

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
server {
2+
listen ${UI_PORT};
3+
server_name ${UI_HOST};
4+
5+
location / {
6+
root /usr/share/nginx/html;
7+
index index.html index.htm;
8+
}
9+
10+
location /api {
11+
proxy_pass http://django:${UVICORN_PORT}/api;
12+
proxy_set_header Host $host;
13+
proxy_set_header X-Real-IP $remote_addr;
14+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15+
proxy_set_header X-Forwarded-Proto $scheme;
16+
}
17+
}

0 commit comments

Comments
 (0)