This commit is contained in:
Alexandre
2024-07-27 10:09:07 +02:00
parent 32abce6b77
commit 302249b5b6
3 changed files with 23 additions and 13 deletions

View File

@@ -9,18 +9,27 @@ server {
client_max_body_size 0;
root /var/www/firefly-iii/public/;
root /var/www/firefly-iii/public;
index index.html;
large_client_header_buffers 8 32k;
client_max_body_size 300M;
index index.php index.html index.htm;
server_name firefly.home.internal;
location / {
root /var/www/firefly-iii/public/;
location / {
try_files $uri $uri/ /index.php?$query_string;
autoindex on;
sendfile off;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_read_timeout 300;
}
location ~* \.php(?:$|/) {
include snippets/fastcgi-php.conf;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
}
}