This commit is contained in:
CroneKorkN 2025-06-09 18:10:17 +02:00
parent c3992ae03d
commit a8976ab36e
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
3 changed files with 6 additions and 5 deletions

View file

@ -34,5 +34,8 @@ files = {
'needs': [
'git_deploy:/var/www/yourls/htdocs',
],
'triggers': [
'svc_systemd:nginx:restart',
],
},
}

View file

@ -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'),

View file

@ -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;
}
}
}