Compare commits

..

1 Commits

Author SHA1 Message Date
mercury 4082dac97b sslip.io 2024-03-17 17:50:09 +04:00
3 changed files with 20 additions and 4 deletions
+17 -3
View File
@@ -5,6 +5,7 @@ class Bot
public $input;
public $adguard;
public $update;
public $ip;
public function __construct($key, $i18n)
{
@@ -1451,7 +1452,7 @@ class Bot
}
}
public function addDomain($domain)
public function addDomain($domain, $nomenu = false)
{
$domain = trim($domain);
if (!empty($domain)) {
@@ -1478,8 +1479,21 @@ class Bot
file_put_contents('/config/nginx.conf', $nginx);
}
}
sleep(3);
$this->menu('config');
if (empty($nomenu)) {
sleep(3);
$this->menu('config');
}
}
public function sslip()
{
$c = $this->getPacConf();
if (empty($c['domain'])) {
$this->addDomain(str_replace('.', '-', $this->ip) . '.sslip.io', 1);
$this->setSSL('letsencrypt');
} else {
$this->menu();
}
}
public function comment($text, $tag)
+1 -1
View File
@@ -35,4 +35,4 @@ if (!empty($c['admin'])) {
}
file_put_contents('/update/message', '');
file_put_contents('/update/reload_message', '');
$bot->menu();
$bot->sslip();
+2
View File
@@ -1,3 +1,5 @@
17.03.2024 v1.9
- автоматический технический домен sslip
13.03.2024 v1.8.10
- фикс override.env
10.03.2024 v1.8.9