mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 07:49:24 +08:00
modules.services.gitea: fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user