mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
Protect data directory
This commit is contained in:
parent
1c9efb6d10
commit
a54da702af
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,11 @@ location __PATH__/ {
|
|||
# Override CSP header to make SSOWAT user panel compatible with kanboard
|
||||
more_set_headers Content-Security-Policy "default-src 'self' 'unsafe-eval' data:;";
|
||||
|
||||
# Deny access to the directory data
|
||||
location __PATH__/data {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||
|
|
Loading…
Add table
Reference in a new issue