fix ssl export

This commit is contained in:
mercury
2023-06-26 16:39:17 +04:00
parent d24bfdbd5f
commit 75cf0420c3
+4 -4
View File
@@ -722,10 +722,10 @@ class Bot
'sl' => $this->getSSLocalConfig(), 'sl' => $this->getSSLocalConfig(),
'ad' => yaml_parse_file('/config/adguard/AdGuardHome.yaml'), 'ad' => yaml_parse_file('/config/adguard/AdGuardHome.yaml'),
'pac' => $this->getPacConf(), 'pac' => $this->getPacConf(),
'ssl' => [ 'ssl' => file_exists('/certs/cert_private') ? [
'private' => file_exists('/certs/cert_private') ? file_get_contents('/certs/cert_private') : false, 'private' => file_get_contents('/certs/cert_private'),
'public' => file_exists('/certs/cert_public') ? file_get_contents('/certs/cert_public') : false, 'public' => file_get_contents('/certs/cert_public'),
], ] : false,
'mtproto' => file_get_contents('/config/mtprotosecret'), 'mtproto' => file_get_contents('/config/mtprotosecret'),
]; ];