Commit eca023ed authored by Vitaly Lipatov's avatar Vitaly Lipatov

web: configure versioned PHP-FPM socket

parent e5e6b24a
......@@ -14,7 +14,7 @@ server {
location ~* \.php$ {
#try_files $uri = 404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_pass unix:@PHP_FPM_SOCKET@;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
......
......@@ -47,7 +47,7 @@ Group: Development/Other
Requires: eterban-common = %EVR
Requires: nginx
Requires: %defphp-redis
Requires: %defphp-fpm
Requires: %defphp-fpm-fcgi
%description web
Etersoft ban service.
......@@ -89,6 +89,7 @@ install -m 644 gateway/etc/cron.hourly/* %buildroot/etc/cron.hourly/
install -m 644 ban-server/data/www/* %buildroot%webserver_htdocsdir/%name/
install -m 644 ban-server/etc/nginx/sites-enabled.d/* %buildroot/etc/nginx/sites-enabled.d/
sed -i 's|@PHP_FPM_SOCKET@|/var/run/php%php_defver-fpm/php%php_defver-fpm.sock|' %buildroot/etc/nginx/sites-enabled.d/eterban.conf
install -m 644 prod-server/etc/fail2ban/action.d/* %buildroot/etc/fail2ban/action.d/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment