fix
This commit is contained in:
parent
84abaee8ed
commit
a6fa5e4d60
1 changed files with 10 additions and 5 deletions
|
|
@ -105,11 +105,16 @@ in
|
||||||
deny all;
|
deny all;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"~ ^/[^/]+/[^/]+/archive/".extraConfig = ''
|
"~ ^/[^/]+/[^/]+/archive/" = {
|
||||||
limit_req zone=forgejo_archive burst=10 nodelay;
|
recommendedProxySettings = true;
|
||||||
limit_conn forgejo_archive_conn 2;
|
proxyPass = "http://unix:${config.services.forgejo.settings.server.HTTP_ADDR}";
|
||||||
limit_req_status 429;
|
extraConfig = ''
|
||||||
'';
|
proxy_set_header Forwarded "$proxy_forwarded_for_element;$proxy_forwarded_by_element;host=$host;proto=$scheme";
|
||||||
|
limit_req zone=forgejo_archive burst=10 nodelay;
|
||||||
|
limit_conn forgejo_archive_conn 2;
|
||||||
|
limit_req_status 429;
|
||||||
|
'';
|
||||||
|
};
|
||||||
"= /robots.txt".extraConfig = ''
|
"= /robots.txt".extraConfig = ''
|
||||||
default_type text/plain;
|
default_type text/plain;
|
||||||
return 200 "User-agent: *\nDisallow: /*/*/archive/\n";
|
return 200 "User-agent: *\nDisallow: /*/*/archive/\n";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue