Update versioned_docs/version-1.22/administration/reverse-proxies.md

This commit is contained in:
wxiaoguang
2024-09-18 07:09:29 +00:00
parent 05a0760f6b
commit 6eb17fcd29

View File

@@ -66,7 +66,7 @@ server {
# make nginx use unescaped URI, keep "%2F" as-is, remove the "/gitea" sub-path prefix, pass "/v2" as-is.
rewrite ^ $request_uri;
rewrite ^(/gitea)?(/.*) $2 break;
rewrite ^/(gitea($|/))?(.*) /$3 break;
proxy_pass http://127.0.0.1:3000$uri;
# other common HTTP headers, see the "Nginx" config section above