From a1bbf35a4b7e0da1fe27784a2ed84ecc847a711a Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Wed, 19 Jun 2024 16:00:54 +0000 Subject: [PATCH] add gitea. --- Server/conf/nginx.conf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Server/conf/nginx.conf b/Server/conf/nginx.conf index 968a9a4..fb08930 100644 --- a/Server/conf/nginx.conf +++ b/Server/conf/nginx.conf @@ -36,10 +36,6 @@ http { server 127.0.0.1:8082; } - upstream gitea { - server 127.0.0.1:8083; - } - upstream frp_http_proxy { server 127.0.0.1:8084; } @@ -321,7 +317,8 @@ http { location / { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://gitea; + proxy_set_header Host $http_host; + proxy_pass http://frp_http_proxy; } }