- Use default laravel nginx and extend it with invoiceninja -specific settings

- Overwrite php.ini/php-fpm.ini settings with customized settings
This commit is contained in:
Benjamin Brummer
2024-11-28 14:04:11 +01:00
parent 687e74c983
commit b83fb831b9
8 changed files with 46 additions and 86 deletions

31
debian/nginx/laravel.conf vendored Normal file
View File

@@ -0,0 +1,31 @@
server {
listen 80 default_server;
server_name _;
root /var/www/html/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass app:9000;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
}