From a409cd53e3bd2109f0fba645c6af5611a212b370 Mon Sep 17 00:00:00 2001 From: wdh-home <243823965@qq.com> Date: Tue, 19 May 2026 10:42:21 +0800 Subject: [PATCH] 1 --- conf/conf.d/gitea.sggai.site.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/conf/conf.d/gitea.sggai.site.conf b/conf/conf.d/gitea.sggai.site.conf index f46ec83..5e715fd 100644 --- a/conf/conf.d/gitea.sggai.site.conf +++ b/conf/conf.d/gitea.sggai.site.conf @@ -9,17 +9,22 @@ server { root /var/www; index index.html; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_read_timeout 3600s; + proxy_send_timeout 3600s; + location ^~ /.well-known/acme-challenge/ { root /var/www; default_type text/plain; try_files $uri =404; } - + location / { if ($scheme = http) { return 301 https://$host$request_uri; } - - try_files $uri $uri/ /index.html; + proxy_pass http://10.1.0.1:3000; } }