nodes/htz-cloud.luther: add needed config and packages for drupal
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-10-31 13:01:15 +01:00
parent f8bc4b2ad9
commit 3dc5962627
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,47 @@
location ~ ^/sites/.*/private/ {
return 403;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
location ~ (^|/)\. {
return 403;
}
location / {
try_files $uri /index.php?$query_string;
}
location @rewrite {
rewrite ^ /index.php;
}
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
location ~* \.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|/(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config)$|/#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$ {
deny all;
return 404;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}
if ($request_uri ~* "^(.*/)index\.php/(.*)") {
return 307 $1$2;
}

View file

@ -1,5 +1,6 @@
nodes['htz-cloud.luther'] = { nodes['htz-cloud.luther'] = {
'bundles': { 'bundles': {
'php',
'postgresql', 'postgresql',
'zfs', 'zfs',
}, },
@ -19,14 +20,35 @@ nodes['htz-cloud.luther'] = {
'gateway6': 'fe80::1', 'gateway6': 'fe80::1',
}, },
}, },
'apt': {
'packages': {
'php-apcu': {},
'php-uploadprogress': {},
},
},
'cron': {
'luther-ps': vault.decrypt('encrypt$gAAAAABfnUqTXXpUYCA2DxllTKgbKg6YguCBbguJ0rerFGi9UNxEuTO6eqReqraS9FzNmLl81S_20bYwXM5W8pNwV5I5i6BVz1M37TxdsMCAxMG-9G0ZHFXeE4K5a4MWxuyYkrVPtK_hNFOciwxDDwPYT8tH_Jahdqmr8fZcCcsICzsSOxycn89VEm2ODnfH24Azrj6mVq5cPMc_xkdWnn-dSMCvPXpjjg==').format_into('*/10 * * * * www-data /usr/bin/curl -s {}'),
},
'nginx': { 'nginx': {
'vhosts': { 'vhosts': {
'luther-ps': { 'luther-ps': {
'domain': 'luther-ps.kunsmann.eu', 'domain': 'luther-ps.kunsmann.eu',
'php': True, 'php': True,
'extras': True,
}, },
}, },
}, },
'php': {
'version': '7.4',
'packages': {
'curl',
'gd',
'json',
'mbstring',
'pgsql',
'xml',
},
},
'postgresql': { 'postgresql': {
'users': { 'users': {
'luther-ps': { 'luther-ps': {