Fix Xray XHTTP
This commit is contained in:
@@ -1 +1 @@
|
||||
38 Year Of the Noodle Dragon
|
||||
39 Year Of the Noodle Dragon
|
||||
6
xray.php
6
xray.php
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user