Compare commits
3 Commits
55738548ad
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d66b08728 | |||
| 5d36fa750a | |||
| be64961777 |
5
menu
5
menu
@@ -276,6 +276,7 @@ menuxray(){
|
|||||||
php /opt/DragonCore/menu.php xrayRemoveUser "$ident"
|
php /opt/DragonCore/menu.php xrayRemoveUser "$ident"
|
||||||
echo ""
|
echo ""
|
||||||
echo -ne "Pressione enter para continuar"; read enter
|
echo -ne "Pressione enter para continuar"; read enter
|
||||||
|
menuxray
|
||||||
fi
|
fi
|
||||||
menuxray
|
menuxray
|
||||||
elif [ "$option" == "3" ]; then
|
elif [ "$option" == "3" ]; then
|
||||||
@@ -296,8 +297,9 @@ menuxray(){
|
|||||||
if [ -n "$dominio" ]; then
|
if [ -n "$dominio" ]; then
|
||||||
php /opt/DragonCore/menu.php xrayCert "$dominio"
|
php /opt/DragonCore/menu.php xrayCert "$dominio"
|
||||||
echo ""
|
echo ""
|
||||||
chmod 777 -R /opt/DragonCore/ssl
|
chmod 777 -R /opt/DragonCoreSSL
|
||||||
echo -ne "Pressione enter para continuar"; read enter
|
echo -ne "Pressione enter para continuar"; read enter
|
||||||
|
menuxray
|
||||||
fi
|
fi
|
||||||
menuxray
|
menuxray
|
||||||
elif [ "$option" == "6" ]; then
|
elif [ "$option" == "6" ]; then
|
||||||
@@ -320,6 +322,7 @@ menuxray(){
|
|||||||
bash <(php /opt/DragonCore/menu.php xrayRemove)
|
bash <(php /opt/DragonCore/menu.php xrayRemove)
|
||||||
echo ""
|
echo ""
|
||||||
echo -ne "Pressione enter para continuar"; read enter
|
echo -ne "Pressione enter para continuar"; read enter
|
||||||
|
menuxray
|
||||||
fi
|
fi
|
||||||
menuxray
|
menuxray
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1,5 +1 @@
|
|||||||
<<<<<<< HEAD
|
40 Year Of the Noodle Dragon
|
||||||
38 Year Of the Noodle Dragon
|
|
||||||
=======
|
|
||||||
37 Year Of the Noodle Dragon
|
|
||||||
>>>>>>> c8562cc676ebda86e0357d4888d9d576421d53e3
|
|
||||||
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