aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-05-16 20:36:19 +0800
committercrupest <crupest@outlook.com>2021-05-16 20:36:19 +0800
commitad5c9a4609b66032d8bc851e7e1f69423c57c30c (patch)
treee9772f0daba7f9d0d9d917f672df0422b6fc75d0
parent230cffd2a4932fe6b46c5f0e787e6ef4a99ec3ef (diff)
downloadtimeline-ad5c9a4609b66032d8bc851e7e1f69423c57c30c.tar.gz
timeline-ad5c9a4609b66032d8bc851e7e1f69423c57c30c.tar.bz2
timeline-ad5c9a4609b66032d8bc851e7e1f69423c57c30c.zip
deploy: Add nginx configuration.
-rw-r--r--deploy/nginx15
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy/nginx b/deploy/nginx
new file mode 100644
index 00000000..ac25e85f
--- /dev/null
+++ b/deploy/nginx
@@ -0,0 +1,15 @@
+server {
+ server_name timeline.crupest.life;
+ listen 80;
+
+ location / {
+ proxy_pass http://localhost:5000;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection $http_connection;
+ proxy_set_header Host $host;
+ proxy_cache_bypass $http_upgrade;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+}