modules.services.gitea: fix

This commit is contained in:
2026-01-06 12:38:43 +08:00
parent 411a276d34
commit f0cc24522e

View File

@@ -62,10 +62,13 @@ inputs:
nginx.virtualHosts."https:${gitea.hostname}".locations."/".extraConfigPre =
''
if ($http_user_agent ~* "git/|git-lfs/") {
set $bypass_cookie 1;
set $bypass_cookie 1;
}
if ($cookie_Yogsototh_opens_the_door = "1") {
set $bypass_cookie 1;
set $bypass_cookie 1;
}
if ($request_method != "GET") {
set $bypass_cookie 1;
}
if ($bypass_cookie != 1) {
add_header Content-Type text/html always;