summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/usage
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-06-22 10:15:49 +0200
committerGitHub <noreply@github.com>2022-06-22 16:15:49 +0800
commite9aa698cf0012888c9f7004bce85632f0917ab79 (patch)
treee49bf3c83d8a5e980a1d81ad741e13ac6451b177 /docs/content/doc/usage
parent031f5f7b7ceb57283171f7654798fad54873e03f (diff)
downloadgitea-e9aa698cf0012888c9f7004bce85632f0917ab79.tar.gz
gitea-e9aa698cf0012888c9f7004bce85632f0917ab79.zip
Fix alias traversal (#20076)
see https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'docs/content/doc/usage')
-rw-r--r--docs/content/doc/usage/reverse-proxies.en-us.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/content/doc/usage/reverse-proxies.en-us.md b/docs/content/doc/usage/reverse-proxies.en-us.md
index 008704cdcf..9e903f4259 100644
--- a/docs/content/doc/usage/reverse-proxies.en-us.md
+++ b/docs/content/doc/usage/reverse-proxies.en-us.md
@@ -88,8 +88,8 @@ server {
listen 80;
server_name git.example.com;
- location /_/static/assets {
- alias /path/to/gitea/public;
+ location /_/static/assets/ {
+ alias /path/to/gitea/public/;
}
location / {
@@ -120,8 +120,8 @@ server {
listen 80;
server_name cdn.example.com;
- location /gitea {
- alias /path/to/gitea/public;
+ location /gitea/ {
+ alias /path/to/gitea/public/;
}
location / {
@@ -362,4 +362,4 @@ gitea:
- "traefik.http.services.gitea-websecure.loadbalancer.server.port=3000"
```
-This config assumes that you are handling HTTPS on the traefik side and using HTTP between Gitea and traefik. \ No newline at end of file
+This config assumes that you are handling HTTPS on the traefik side and using HTTP between Gitea and traefik.