aboutsummaryrefslogtreecommitdiff
path: root/templates/nginx/common/proxy-common
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-11-11 01:12:29 +0800
committerYuqian Yang <crupest@crupest.life>2024-12-22 17:45:13 +0800
commitce79647caae24e77fb2e978541a30dca29026b8a (patch)
tree4197980a04943b42941d3fce7cb16d1f7ea400bd /templates/nginx/common/proxy-common
parentd4cc5937df9f45391c4f980d3978b91740bfecc0 (diff)
downloadcrupest-ce79647caae24e77fb2e978541a30dca29026b8a.tar.gz
crupest-ce79647caae24e77fb2e978541a30dca29026b8a.tar.bz2
crupest-ce79647caae24e77fb2e978541a30dca29026b8a.zip
HALF WORK: 2024.12.22
code.
Diffstat (limited to 'templates/nginx/common/proxy-common')
-rw-r--r--templates/nginx/common/proxy-common7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/nginx/common/proxy-common b/templates/nginx/common/proxy-common
new file mode 100644
index 0000000..4193548
--- /dev/null
+++ b/templates/nginx/common/proxy-common
@@ -0,0 +1,7 @@
+proxy_http_version 1.1;
+proxy_set_header Upgrade $http_upgrade;
+proxy_set_header Connection $connection_upgrade;
+proxy_set_header Host $host;
+proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+proxy_set_header X-Forwarded-Proto $scheme;
+proxy_set_header X-Real-IP $remote_addr;