diff --git a/bundles/yourls/items.py b/bundles/yourls/items.py index 4d8a684..8ed0472 100644 --- a/bundles/yourls/items.py +++ b/bundles/yourls/items.py @@ -34,5 +34,8 @@ files = { 'needs': [ 'git_deploy:/var/www/yourls/htdocs', ], + 'triggers': [ + 'svc_systemd:nginx:restart', + ], }, } diff --git a/bundles/yourls/metadata.py b/bundles/yourls/metadata.py index 0b76340..585233c 100644 --- a/bundles/yourls/metadata.py +++ b/bundles/yourls/metadata.py @@ -16,7 +16,7 @@ def nginx(metadata): return { 'nginx': { 'vhosts': { - metadata.get('yourls/url'): { + metadata.get('yourls/hostname'): { 'content': 'yourls/vhost.conf', 'context': { 'php_version': metadata.get('php/version'), diff --git a/data/yourls/vhost.conf b/data/yourls/vhost.conf index 0fef8a5..0e30aea 100644 --- a/data/yourls/vhost.conf +++ b/data/yourls/vhost.conf @@ -15,8 +15,6 @@ server { location ~ \.php$ { include params/fastcgi; fastcgi_index index.php; - - # MUST BE EDITED TO REFLECT YOUR CONFIGURATION - fastcgi_pass unix:/var/run/php/php${php_version}-fpm.sock; + fastcgi_pass unix:/run/php/php${php_version}-fpm.sock; } -} \ No newline at end of file +}