mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix Traefik config file text
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user