From fa420b9346ac64395fdb25ab4ec4bac9070a0d4f Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Sun, 8 Oct 2023 02:12:15 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=8D=E5=90=91=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=A2=9E=E5=8A=A0=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E8=BD=AC=E5=8F=91=20(#2456)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/server/nginx_conf/proxy.conf | 1 + cmd/server/nginx_conf/website_default.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/server/nginx_conf/proxy.conf b/cmd/server/nginx_conf/proxy.conf index 8bd082d03..d1914fb69 100644 --- a/cmd/server/nginx_conf/proxy.conf +++ b/cmd/server/nginx_conf/proxy.conf @@ -6,6 +6,7 @@ location ^~ /test { proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; + proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; add_header X-Cache $upstream_cache_status; diff --git a/cmd/server/nginx_conf/website_default.conf b/cmd/server/nginx_conf/website_default.conf index d73b00817..3aa1eccf9 100644 --- a/cmd/server/nginx_conf/website_default.conf +++ b/cmd/server/nginx_conf/website_default.conf @@ -32,7 +32,7 @@ server { set $ipWhiteAllow off; - location ~ /.well-known/acme-challenge { + location ^~ /.well-known/acme-challenge { allow all; root /usr/share/nginx/html; }