mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update nginx.conf
Updated to include code to prevent remote code execution on certain nginx/php-fpm configurations
This commit is contained in:
parent
8b57a2cfe8
commit
5ff9d92830
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ server {
|
|||
|
||||
location ~ \.php$ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
try_files $fastcgi_script_name =404;
|
||||
fastcgi_pass unix:/run/php-fpm/php-fpm.sock; # make sure this is correct
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
|
|
Loading…
Reference in a new issue