aboutsummaryrefslogtreecommitdiffstats
path: root/config/nginx/pharos_dashboard.conf
diff options
context:
space:
mode:
Diffstat (limited to 'config/nginx/pharos_dashboard.conf')
-rw-r--r--config/nginx/pharos_dashboard.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/config/nginx/pharos_dashboard.conf b/config/nginx/pharos_dashboard.conf
new file mode 100644
index 0000000..87b6f8e
--- /dev/null
+++ b/config/nginx/pharos_dashboard.conf
@@ -0,0 +1,24 @@
+upstream web {
+ ip_hash;
+ server web:8000;
+}
+
+# portal
+server {
+ listen 80;
+ server_name localhost;
+ charset utf-8;
+
+ location /static {
+ alias /static;
+ }
+
+ location /media {
+ alias /media;
+ }
+
+ location / {
+ proxy_set_header Host $host;
+ proxy_pass http://web/;
+ }
+}