From 2227a60b773b6eb09b889dcdf2861c147729f1eb Mon Sep 17 00:00:00 2001 From: shy Date: Sat, 9 Apr 2022 10:27:50 +0800 Subject: [PATCH] opt nginx --- etc/conf/location.conf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/etc/conf/location.conf b/etc/conf/location.conf index c0a820b0..70a47853 100644 --- a/etc/conf/location.conf +++ b/etc/conf/location.conf @@ -12,16 +12,19 @@ client_body_buffer_size 16K; client_body_temp_path /tmp/nginx/client_body_temp; -proxy_set_header X-HOST $scheme://$http_host; -proxy_set_header X-Real-Port $remote_port; -proxy_set_header X-Real-IP $remote_addr; - location / { proxy_pass http://127.0.0.1:9020; + proxy_set_header X-HOST $scheme://$http_host; + proxy_set_header X-Real-Port $remote_port; + proxy_set_header X-Real-IP $remote_addr; + } location /space/ { proxy_pass http://127.0.0.1:9020; + proxy_set_header X-HOST $scheme://$http_host; + proxy_set_header X-Real-Port $remote_port; + proxy_set_header X-Real-IP $remote_addr; proxy_set_header Connection "upgrade"; proxy_set_header Upgrade $http_upgrade; }