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['security'] = 'tls';
|
||||||
$streamSettings['tlsSettings'] = [
|
$streamSettings['tlsSettings'] = [
|
||||||
'certificates' => [[
|
'certificates' => [[
|
||||||
'certificateFile' => '/opt/DragonCore/ssl/fullchain.pem',
|
'certificateFile' => '/opt/DragonCoreSSL/fullchain.pem',
|
||||||
'keyFile' => '/opt/DragonCore/ssl/privkey.pem',
|
'keyFile' => '/opt/DragonCoreSSL/privkey.pem',
|
||||||
]],
|
]],
|
||||||
'alpn' => ['http/1.1'],
|
'alpn' => ['http/1.1'],
|
||||||
];
|
];
|
||||||
@@ -448,7 +448,7 @@ function xrayListUsers()
|
|||||||
|
|
||||||
function xrayCert(string $domain)
|
function xrayCert(string $domain)
|
||||||
{
|
{
|
||||||
$sslDir = '/opt/DragonCore/ssl';
|
$sslDir = '/opt/DragonCoreSSL';
|
||||||
$keyFile = $sslDir . '/privkey.pem';
|
$keyFile = $sslDir . '/privkey.pem';
|
||||||
$crtFile = $sslDir . '/fullchain.pem';
|
$crtFile = $sslDir . '/fullchain.pem';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user