Use separate PHP upstream for pixelfed

This commit is contained in:
staticsafe 2018-08-25 21:29:37 -04:00
parent a887f9615b
commit c011cc7485
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass php;
fastcgi_pass pixelfed;
fastcgi_index index.php;
}
@ -70,6 +70,7 @@
- gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript
upstream:
- upstream php { server unix:/run/php/php7.2-fpm.sock; }
- upstream pixelfed { server 127.0.0.1:4000; }
ssl:
- ssl_protocols TLSv1.2
- ssl_dhparam "/etc/nginx/dhparams.pem"