Fix Xray XHTTP

This commit is contained in:
2025-12-01 00:36:55 -03:00
parent be64961777
commit 5d36fa750a
2 changed files with 4 additions and 4 deletions

View File

@@ -1 +1 @@
38 Year Of the Noodle Dragon
39 Year Of the Noodle Dragon

View File

@@ -156,8 +156,8 @@ function xrayGenerateConfig($port, string $network = 'xhttp')
$streamSettings['security'] = 'tls';
$streamSettings['tlsSettings'] = [
'certificates' => [[
'certificateFile' => '/opt/DragonCore/ssl/fullchain.pem',
'keyFile' => '/opt/DragonCore/ssl/privkey.pem',
'certificateFile' => '/opt/DragonCoreSSL/fullchain.pem',
'keyFile' => '/opt/DragonCoreSSL/privkey.pem',
]],
'alpn' => ['http/1.1'],
];
@@ -448,7 +448,7 @@ function xrayListUsers()
function xrayCert(string $domain)
{
$sslDir = '/opt/DragonCore/ssl';
$sslDir = '/opt/DragonCoreSSL';
$keyFile = $sslDir . '/privkey.pem';
$crtFile = $sslDir . '/fullchain.pem';