Skip to content

Commit 22770fd

Browse files
committed
improve nginx reverse proxy
go-gitea#15931
1 parent 1e33668 commit 22770fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/content/doc/usage/reverse-proxies.en-us.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ server {
4646
location /git/ { # Note: Trailing slash
4747
proxy_pass http://localhost:3000/; # Note: Trailing slash
4848
}
49+
location = /git {
50+
return 308 /git/
51+
}
4952
}
5053
```
5154

0 commit comments

Comments
 (0)