diff --git a/conf/nginx.conf b/conf/nginx.conf index 95428bc..7ff79b5 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -12,7 +12,7 @@ location __PATH__/ { location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm__NAME__.sock; + fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; diff --git a/conf/systemd.service b/conf/systemd.service index 6d0114f..9eb2f98 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -5,9 +5,7 @@ After=nginx.service network.target local-fs.target postgresql.service [Service] Type=simple User=www-data -Environment=PUBLIC_URL=https://__DOMAIN__/__PATH__ -Environment=WS_PORT=__PORT__ -ExecStart=/usr/bin/php daemon.php start --url=${PUBLIC_URL} --port=${WS_PORT} +ExecStart=/usr/bin/php daemon.php start --url=https://__DOMAIN____PATH__ --port=__PORT__ WorkingDirectory=__FINALPATH__ StandardOutput=syslog SyslogIdentifier=__APP__