wip
This commit is contained in:
parent
c3992ae03d
commit
a8976ab36e
3 changed files with 6 additions and 5 deletions
|
@ -34,5 +34,8 @@ files = {
|
||||||
'needs': [
|
'needs': [
|
||||||
'git_deploy:/var/www/yourls/htdocs',
|
'git_deploy:/var/www/yourls/htdocs',
|
||||||
],
|
],
|
||||||
|
'triggers': [
|
||||||
|
'svc_systemd:nginx:restart',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ def nginx(metadata):
|
||||||
return {
|
return {
|
||||||
'nginx': {
|
'nginx': {
|
||||||
'vhosts': {
|
'vhosts': {
|
||||||
metadata.get('yourls/url'): {
|
metadata.get('yourls/hostname'): {
|
||||||
'content': 'yourls/vhost.conf',
|
'content': 'yourls/vhost.conf',
|
||||||
'context': {
|
'context': {
|
||||||
'php_version': metadata.get('php/version'),
|
'php_version': metadata.get('php/version'),
|
||||||
|
|
|
@ -15,8 +15,6 @@ server {
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
include params/fastcgi;
|
include params/fastcgi;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
|
fastcgi_pass unix:/run/php/php${php_version}-fpm.sock;
|
||||||
# MUST BE EDITED TO REFLECT YOUR CONFIGURATION
|
|
||||||
fastcgi_pass unix:/var/run/php/php${php_version}-fpm.sock;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue