1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mygpo_ynh.git synced 2024-09-03 19:55:52 +02:00

Fix nginx security issue

This commit is contained in:
Salamandar 2024-03-04 15:47:43 +01:00
parent eef1b7eb8b
commit 68023698fe

View file

@ -45,12 +45,12 @@ location @proxy_to_app {
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
} }
location /media/admin { location /media/admin/ {
alias __INSTALL_DIR__/venv/lib/python3.7/site-packages/django/contrib/admin/static/admin; alias __INSTALL_DIR__/venv/lib/python3.7/site-packages/django/contrib/admin/static/admin/;
} }
location /static/admin { location /static/admin/ {
alias __INSTALL_DIR__/venv/lib/python3.7/site-packages/django/contrib/admin/static/admin; alias __INSTALL_DIR__/venv/lib/python3.7/site-packages/django/contrib/admin/static/admin/;
} }
location ~ /(favicon.ico|favicon.png|robots.txt|clientconfig.json) { location ~ /(favicon.ico|favicon.png|robots.txt|clientconfig.json) {