server { listen 9031; listen [::]:9031; root /opt/firefly-iii/public; # Add index.php to the list if you are using PHP client_max_body_size 300M; index index.html index.htm index.php; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } index index.php index.htm index.html; location / { try_files $uri $uri/ /index.php?$query_string; autoindex on; sendfile off; } }