Update docs/administration/reverse-proxies.md

This commit is contained in:
wxiaoguang
2024-09-18 07:09:48 +00:00
parent 6eb17fcd29
commit bbaeadb0c8

View File

@@ -64,7 +64,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