mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-15 14:41:26 +00:00
Update versioned_docs/version-1.22/administration/reverse-proxies.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user