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': [
|
||||
'git_deploy:/var/www/yourls/htdocs',
|
||||
],
|
||||
'triggers': [
|
||||
'svc_systemd:nginx:restart',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue