From a0eb19d7d2c0aafac211765e9c29c3fec6ac6cef Mon Sep 17 00:00:00 2001 From: Sandro Date: Wed, 22 Jun 2022 02:11:50 +0200 Subject: [PATCH] Fix alias traversal see https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md --- docs/content/doc/usage/reverse-proxies.en-us.md | 10 +++++----- 1 file 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 008704cdcf747..9e903f4259436 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.