Compare commits

...

3 Commits

Author SHA1 Message Date
8d66b08728 Fix Xray Menu 2025-12-01 00:39:35 -03:00
5d36fa750a Fix Xray XHTTP 2025-12-01 00:36:55 -03:00
be64961777 Fix version 2025-12-01 00:33:20 -03:00
3 changed files with 8 additions and 9 deletions

5
menu
View File

@@ -276,6 +276,7 @@ menuxray(){
php /opt/DragonCore/menu.php xrayRemoveUser "$ident"
echo ""
echo -ne "Pressione enter para continuar"; read enter
menuxray
fi
menuxray
elif [ "$option" == "3" ]; then
@@ -296,8 +297,9 @@ menuxray(){
if [ -n "$dominio" ]; then
php /opt/DragonCore/menu.php xrayCert "$dominio"
echo ""
chmod 777 -R /opt/DragonCore/ssl
chmod 777 -R /opt/DragonCoreSSL
echo -ne "Pressione enter para continuar"; read enter
menuxray
fi
menuxray
elif [ "$option" == "6" ]; then
@@ -320,6 +322,7 @@ menuxray(){
bash <(php /opt/DragonCore/menu.php xrayRemove)
echo ""
echo -ne "Pressione enter para continuar"; read enter
menuxray
fi
menuxray
else

View File

@@ -1,5 +1 @@
<<<<<<< HEAD
38 Year Of the Noodle Dragon
=======
37 Year Of the Noodle Dragon
>>>>>>> c8562cc676ebda86e0357d4888d9d576421d53e3
40 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';