diff --git a/conf/nginx.conf b/conf/nginx.conf index 606ae0d..0a0c9f4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -10,7 +10,7 @@ location __PATH__/ { # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file #client_max_body_size 50M; - try_files $uri $uri/ index.php?$query_string; + try_files $uri $uri/ /index.php?$query_string; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; @@ -28,3 +28,19 @@ location __PATH__/ { # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } + +location ~ ^\. { + deny all; +} + +location ~ \.sqlite$ { + deny all; +} + +location ~ \.env$ { + deny all; +} + +location ~ /\.htaccess { + deny all; +} \ No newline at end of file diff --git a/manifest.toml b/manifest.toml index 017f926..b8e590e 100644 --- a/manifest.toml +++ b/manifest.toml @@ -13,7 +13,7 @@ maintainers = ["Tagada"] license = "agpl-3-or-later" website = "https://linkstack.org/" admindoc = "https://docs.linkstack.org/" -code = "https://some.forge.com/example/example" +code = "https://github.com/LinkStackOrg/LinkStack" # FIXME: No CPE yet... check https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=LinkStack #cpe = "???" fund = "https://liberapay.com/LittleLink-Custom"