-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use default laravel nginx and extend it with invoiceninja -specific…
… settings - Overwrite php.ini/php-fpm.ini settings with customized settings
- Loading branch information
Benjamin Brummer
committed
Nov 28, 2024
1 parent
687e74c
commit b83fb83
Showing
8 changed files
with
46 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
client_max_body_size 100M; | ||
client_body_buffer_size 100M; | ||
|
||
fastcgi_buffer_size 16k; | ||
fastcgi_buffers 4 16k; | ||
|
||
gzip on; | ||
|
||
server_tokens off; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
[www] | ||
user = www-data | ||
group = www-data | ||
listen = 0.0.0.0:9000 | ||
pm = dynamic | ||
pm.max_children = 10 | ||
pm.start_servers = 2 | ||
pm.min_spare_servers = 1 | ||
pm.max_spare_servers = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
session.auto_start = Off | ||
short_open_tag = Off | ||
|
||
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED | ||
memory_limit=512M | ||
|
||
opcache.enable=1 | ||
opcache.preload=/var/www/html/preload.php | ||
opcache.preload_user=www-data | ||
|
||
; ; The OPcache shared memory storage size. | ||
opcache.max_accelerated_files=300000 | ||
opcache.validate_timestamps=1 | ||
opcache.revalidate_freq=30 | ||
opcache.jit_buffer_size=256M | ||
opcache.jit=1205 | ||
opcache.memory_consumption=1024M | ||
|
||
|
||
post_max_size = 60M | ||
upload_max_filesize = 50M | ||
memory_limit=512M |