Fix alias traversal (#20076)

see https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md

Co-authored-by: 6543 <6543@obermui.de>
tokarchuk/v1.18
Sandro 2 years ago committed by GitHub
parent 031f5f7b7c
commit e9aa698cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      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 / {

Loading…
Cancel
Save