diff options
author | crupest <crupest@outlook.com> | 2021-05-16 20:36:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-05-16 20:36:19 +0800 |
commit | 234ceb1bdb94cee0eb2459964f543bf9a149e315 (patch) | |
tree | db09b813a3c4b545ab087b94216c042000ae9bd9 /deploy | |
parent | 7190c888d7216485db860566f0e89037d7aab972 (diff) | |
download | timeline-234ceb1bdb94cee0eb2459964f543bf9a149e315.tar.gz timeline-234ceb1bdb94cee0eb2459964f543bf9a149e315.tar.bz2 timeline-234ceb1bdb94cee0eb2459964f543bf9a149e315.zip |
deploy: Add nginx configuration.
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/nginx | 15 |
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;
+ }
+}
|