summary refs log tree commit diff
path: root/nginx.conf
diff options
context:
space:
mode:
authorThesourtimes <cckhmck@gmail.com>2021-12-18 15:19:07 +0300
committerThesourtimes <cckhmck@gmail.com>2021-12-18 15:19:07 +0300
commit13eb680272a400acf67c71610262155ae2af8546 (patch)
tree40f347f74276809b7b29bf33d8cebe8b64af43f4 /nginx.conf
parentAdd the new discovery route (diff)
downloadserver-13eb680272a400acf67c71610262155ae2af8546.tar.xz
Improvements + dummy API configs
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf
new file mode 100644
index 00000000..a810567d
--- /dev/null
+++ b/nginx.conf
@@ -0,0 +1,20 @@
+# This is an example
+server {
+    server_name fosscord.example.com;
+    listen 80;
+    location / {
+            proxy_pass http://127.0.0.1:3001;
+            proxy_set_header Host $host;
+            proxy_pass_request_headers      on;
+            add_header Last-Modified $date_gmt;
+            add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
+            proxy_set_header  X-Real-IP $remote_addr;
+            proxy_set_header  X-Forwarded-Proto https;
+            proxy_set_header  X-Forwarded-For $remote_addr;
+            proxy_set_header  X-Forwarded-Host $remote_addr;
+            proxy_no_cache 1;
+            proxy_cache_bypass 1;
+            proxy_set_header Upgrade $http_upgrade;
+            proxy_set_header Connection "upgrade";
+    }
+}
\ No newline at end of file