We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaba22e commit 4931013Copy full SHA for 4931013
1 file changed
etc/nginx/colocus.conf.template
@@ -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