mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:17:03 +01:00
Fix alias traversal (#20076)
see https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
parent
031f5f7b7c
commit
e9aa698cf0
1 changed files with 5 additions and 5 deletions
|
@ -88,8 +88,8 @@ server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name git.example.com;
|
server_name git.example.com;
|
||||||
|
|
||||||
location /_/static/assets {
|
location /_/static/assets/ {
|
||||||
alias /path/to/gitea/public;
|
alias /path/to/gitea/public/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
@ -120,8 +120,8 @@ server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name cdn.example.com;
|
server_name cdn.example.com;
|
||||||
|
|
||||||
location /gitea {
|
location /gitea/ {
|
||||||
alias /path/to/gitea/public;
|
alias /path/to/gitea/public/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
Loading…
Reference in a new issue