1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Fix Traefik config file text

This commit is contained in:
Matej Bačo 2022-05-12 11:40:32 +00:00
parent 3efb904151
commit 55d934381e

View file

@ -334,11 +334,12 @@ class CertificatesV1 extends Worker
throw new Exception('Failed to rename certificate privkey.pem.');
}
$config =
"tls:" .
" certificates:" .
" - certFile: /storage/certificates/{$domain}/fullchain.pem" .
" keyFile: /storage/certificates/{$domain}/privkey.pem";
$config = \implode('\n', [
"tls:",
" certificates:",
" - certFile: /storage/certificates/{$domain}/fullchain.pem",
" keyFile: /storage/certificates/{$domain}/privkey.pem"
]);
// Save configuration into Traefik using our new cert files
if (!\file_put_contents(APP_STORAGE_CONFIG . '/' . $domain . '.yml', $config)) {