bcremer / shopware-with-nginx

Running shopware using NGINX
http://shopware.com
BSD 2-Clause "Simplified" License
95 stars 46 forks source link

Configurable php-fpm upstream #29

Closed emilv closed 7 years ago

emilv commented 7 years ago

global/shopware.conf is brilliant. Worked much better than my first attempt at a Shopware snippet!

We would prefer to have different PHP-FPM upstreams for different servers. I implemented this on our server by changing fastcgi_pass to:

fastcgi_pass $fpm_upstream;

and in the server { ... } block setting the variable along with the environment key:

set $fpm_upstream php-staging;
set $shopware_env 'staging';
bcremer commented 7 years ago

@emilv Great addition, thanks for the PR :+1: