Compare commits
47 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| eb1ad21c88 | |||
| a3ca7d9ed8 | |||
| 60ba3cf15c | |||
| cd8bcbe05a | |||
| 6cc05c88e7 | |||
| 795c357897 | |||
| e172868f39 | |||
| 4ef38775b0 | |||
| abdb4d791a | |||
| 6948239144 | |||
| ff0fd177c7 | |||
| 28e66d46fd | |||
| edee9c78c5 | |||
| 6ad8b3aa92 | |||
| 31f1825d37 | |||
| 10d84da53e | |||
| c7cc0f31ad | |||
| e3ddb642d7 | |||
| 589823e45d | |||
| 0364188fe8 | |||
| 72edcc4757 | |||
| 5988c4fcee | |||
| a82147eeda | |||
| 6bd21d06c0 | |||
| 3416cda826 | |||
| 2e40daf0c4 | |||
| 9c40b04392 | |||
| 1217ea7a09 | |||
| 7f6d462f22 | |||
| 47876ecdb4 | |||
| 66f03709fc | |||
| 42aafc6427 | |||
| 1674f6929e | |||
| 5791cabfb5 | |||
| 49d2d21f41 | |||
| 5263de514e | |||
| 9da810ba3d | |||
| b663eca445 | |||
| f8f95e22ac | |||
| 30f0f8c5f0 | |||
| 741f402ca1 | |||
| ef3d40c098 | |||
| ded85fb79f | |||
| b5ca5fbf93 | |||
| 570420274e | |||
| baaf0e2d01 | |||
| be8bec6a7d |
+822
-117
File diff suppressed because it is too large
Load Diff
+4
-4
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
$i = [
|
$i = [
|
||||||
'warp' => [
|
'warp' => [
|
||||||
'en' => 'Warp',
|
'en' => 'warp',
|
||||||
'ru' => 'Warp',
|
'ru' => 'warp',
|
||||||
],
|
],
|
||||||
'wg_title' => [
|
'wg_title' => [
|
||||||
'en' => 'Wireguard',
|
'en' => 'Wireguard',
|
||||||
@@ -262,8 +262,8 @@ $i = [
|
|||||||
'ru' => 'очистить',
|
'ru' => 'очистить',
|
||||||
],
|
],
|
||||||
'xray' => [
|
'xray' => [
|
||||||
'en' => 'XTLS-Reality',
|
'en' => 'Xray',
|
||||||
'ru' => 'XTLS-Reality',
|
'ru' => 'Xray',
|
||||||
],
|
],
|
||||||
'geodb' => [
|
'geodb' => [
|
||||||
'en' => 'GeoIp/GeoSite',
|
'en' => 'GeoIp/GeoSite',
|
||||||
|
|||||||
+6
-3
@@ -17,10 +17,13 @@ if ('POST' == $_SERVER['REQUEST_METHOD'] && $_GET['k'] == $c['key']) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// pac
|
// pac
|
||||||
$type = $_GET['t'] ?? 'pac';
|
if (!empty($t = unserialize(base64_decode(explode('/', $_SERVER['REQUEST_URI'])[2])))) { // fix sing-box import
|
||||||
|
$_GET = array_merge($_GET, $t);
|
||||||
|
}
|
||||||
|
$type = $_GET['t'] ?? 'pac';
|
||||||
$address = $_GET['a'] ?: '127.0.0.1';
|
$address = $_GET['a'] ?: '127.0.0.1';
|
||||||
$port = $_GET['p'] ?: '1080';
|
$port = $_GET['p'] ?: '1080';
|
||||||
$hash = $_GET['h'];
|
$hash = $_GET['h'];
|
||||||
if ($hash == substr(md5($c['key']), 0, 8)) {
|
if ($hash == substr(md5($c['key']), 0, 8)) {
|
||||||
require __DIR__ . '/bot.php';
|
require __DIR__ . '/bot.php';
|
||||||
require __DIR__ . '/i18n.php';
|
require __DIR__ . '/i18n.php';
|
||||||
|
|||||||
+12
-6
@@ -89,11 +89,14 @@ function start()
|
|||||||
|
|
||||||
$conf = $bot->getPacConf();
|
$conf = $bot->getPacConf();
|
||||||
|
|
||||||
$subzones = array_keys(array_filter($conf['subzoneslist'], fn($x) => $x == true));
|
if (!empty($conf['subzoneslist'])) {
|
||||||
|
$subzones = array_keys(array_filter($conf['subzoneslist'], fn($x) => $x == true));
|
||||||
|
}
|
||||||
|
|
||||||
// check && exclude
|
// check && exclude
|
||||||
$include = array_filter($conf['includelist'], fn($x) => $x == true);
|
if (!empty($conf['includelist'])) {
|
||||||
$domains = $include;
|
$domains = array_filter($conf['includelist'], fn($x) => $x == true);
|
||||||
|
}
|
||||||
if (empty($domains)) {
|
if (empty($domains)) {
|
||||||
$text = "Empty domains. Delete pac files";
|
$text = "Empty domains. Delete pac files";
|
||||||
unlink(__DIR__ . '/zapretlists/mpac');
|
unlink(__DIR__ . '/zapretlists/mpac');
|
||||||
@@ -146,10 +149,13 @@ function start()
|
|||||||
file_put_contents(__DIR__ . '/zapretlists/pac', $pac);
|
file_put_contents(__DIR__ . '/zapretlists/pac', $pac);
|
||||||
$text .= "Create minified pac 100%\n";
|
$text .= "Create minified pac 100%\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// create reverse PAC
|
// create reverse PAC
|
||||||
$domains = array_filter($conf['reverselist'], fn($x) => $x == true);
|
unset($domains);
|
||||||
|
if (!empty($conf['reverselist'])) {
|
||||||
|
$domains = array_filter($conf['reverselist'], fn($x) => $x == true);
|
||||||
|
}
|
||||||
if (empty($domains)) {
|
if (empty($domains)) {
|
||||||
|
|
||||||
// $text .= "Empty reverse domains. Delete reverse pac files";
|
// $text .= "Empty reverse domains. Delete reverse pac files";
|
||||||
unlink(__DIR__ . '/zapretlists/rmpac');
|
unlink(__DIR__ . '/zapretlists/rmpac');
|
||||||
unlink(__DIR__ . '/zapretlists/rpac');
|
unlink(__DIR__ . '/zapretlists/rpac');
|
||||||
@@ -197,6 +203,7 @@ function start()
|
|||||||
file_put_contents(__DIR__ . '/zapretlists/rpac', $pac);
|
file_put_contents(__DIR__ . '/zapretlists/rpac', $pac);
|
||||||
$text .= 'Create minified reverse pac 100%';
|
$text .= 'Create minified reverse pac 100%';
|
||||||
}
|
}
|
||||||
|
|
||||||
endScript($text);
|
endScript($text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -242,7 +249,6 @@ $load = [
|
|||||||
'-',
|
'-',
|
||||||
'\\',
|
'\\',
|
||||||
];
|
];
|
||||||
|
|
||||||
switch ($_SERVER['argv'][1]) {
|
switch ($_SERVER['argv'][1]) {
|
||||||
case 'start':
|
case 'start':
|
||||||
$bot = new Bot($c['key'], $i);
|
$bot = new Bot($c['key'], $i);
|
||||||
|
|||||||
@@ -64,6 +64,17 @@ http {
|
|||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
}
|
}
|
||||||
|
location /ws {
|
||||||
|
proxy_pass http://xr:443;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_read_timeout 5d;
|
||||||
|
}
|
||||||
location ~\.well-known {
|
location ~\.well-known {
|
||||||
access_log /logs/nginx_certbot_access;
|
access_log /logs/nginx_certbot_access;
|
||||||
root /certs/;
|
root /certs/;
|
||||||
@@ -124,6 +135,17 @@ http {
|
|||||||
# proxy_set_header Upgrade $http_upgrade;
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
# proxy_set_header Connection "upgrade";
|
# proxy_set_header Connection "upgrade";
|
||||||
# }
|
# }
|
||||||
|
# location /ws {
|
||||||
|
# proxy_pass http://xr:443;
|
||||||
|
# proxy_redirect off;
|
||||||
|
# proxy_http_version 1.1;
|
||||||
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
|
# proxy_set_header Connection "upgrade";
|
||||||
|
# proxy_set_header Host $host;
|
||||||
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
# proxy_read_timeout 5d;
|
||||||
|
# }
|
||||||
#-domain
|
#-domain
|
||||||
#-ssl
|
#-ssl
|
||||||
# # The DoH server block
|
# # The DoH server block
|
||||||
|
|||||||
@@ -64,6 +64,17 @@ http {
|
|||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
}
|
}
|
||||||
|
location /ws {
|
||||||
|
proxy_pass http://xr:443;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_read_timeout 5d;
|
||||||
|
}
|
||||||
location ~\.well-known {
|
location ~\.well-known {
|
||||||
access_log /logs/nginx_certbot_access;
|
access_log /logs/nginx_certbot_access;
|
||||||
root /certs/;
|
root /certs/;
|
||||||
@@ -124,6 +135,17 @@ http {
|
|||||||
# proxy_set_header Upgrade $http_upgrade;
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
# proxy_set_header Connection "upgrade";
|
# proxy_set_header Connection "upgrade";
|
||||||
# }
|
# }
|
||||||
|
# location /ws {
|
||||||
|
# proxy_pass http://xr:443;
|
||||||
|
# proxy_redirect off;
|
||||||
|
# proxy_http_version 1.1;
|
||||||
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
|
# proxy_set_header Connection "upgrade";
|
||||||
|
# proxy_set_header Host $host;
|
||||||
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
# proxy_read_timeout 5d;
|
||||||
|
# }
|
||||||
#-domain
|
#-domain
|
||||||
#-ssl
|
#-ssl
|
||||||
# # The DoH server block
|
# # The DoH server block
|
||||||
|
|||||||
+27
-1
@@ -113,16 +113,42 @@
|
|||||||
{
|
{
|
||||||
"createruleset": [
|
"createruleset": [
|
||||||
{
|
{
|
||||||
"name": "selfpac",
|
"name": "pac",
|
||||||
"interval": "15s",
|
"interval": "15s",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"domain_suffix": "~pac~"
|
"domain_suffix": "~pac~"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "warp",
|
||||||
|
"interval": "15s",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"domain_suffix": "~warp~"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbound": "proxy"
|
"outbound": "proxy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"createruleset": [
|
||||||
|
{
|
||||||
|
"name": "block",
|
||||||
|
"interval": "15s",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"domain_suffix": "~block~"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outbound": "block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"outbound": "direct"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final": "direct"
|
"final": "direct"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ b:
|
|||||||
u: # запуск контейнеров
|
u: # запуск контейнеров
|
||||||
bash ./update/update.sh &
|
bash ./update/update.sh &
|
||||||
touch ./override.env
|
touch ./override.env
|
||||||
IP=$(shell curl https://ipinfo.io/ip) VER=$(shell git describe --tags) docker compose --env-file ./.env --env-file ./override.env up -d --force-recreate
|
IP=$(shell curl ipinfo.io/ip) VER=$(shell git describe --tags) docker compose --env-file ./.env --env-file ./override.env up -d --force-recreate
|
||||||
d: # остановка контейнеров
|
d: # остановка контейнеров
|
||||||
-kill -9 $(shell cat ./update/update_pid) > /dev/null
|
-kill -9 $(shell cat ./update/update_pid) > /dev/null
|
||||||
docker compose down --remove-orphans
|
docker compose down --remove-orphans
|
||||||
|
|||||||
@@ -1,3 +1,52 @@
|
|||||||
|
17.09.2024 v1.55
|
||||||
|
- возможность подменить домен в ссылках на конфиги
|
||||||
|
16.09.2024 v1.54.2
|
||||||
|
- фикс нэйминга клиентов в adguardHome: замена на uuid
|
||||||
|
16.09.2024 v1.54.1
|
||||||
|
- фикс нэйминга клиентов в adguardHome
|
||||||
|
16.09.2024 v1.54
|
||||||
|
- ~dns~ в шаблоне сингбокса подменяятся на https://DOMAIN/dns-query/USERNAME
|
||||||
|
- при добавлении пользователя в XRAY, он также добавляется в AdguardHome как сохраненый клиент
|
||||||
|
10.09.2024 v1.53
|
||||||
|
- домен в endpoint для амнезии
|
||||||
|
10.09.2024 v1.52
|
||||||
|
- фикс спамящего уведомления о просрочке сертификата
|
||||||
|
10.09.2024 v1.51
|
||||||
|
- фикс ipinfo
|
||||||
|
08.09.2024 v1.50
|
||||||
|
- fix import with transport
|
||||||
|
08.09.2024 v1.49
|
||||||
|
- fix add user xray with transport
|
||||||
|
08.09.2024 v1.48
|
||||||
|
- fix change xray transport, save private key xray
|
||||||
|
08.09.2024 v1.47
|
||||||
|
- fix websocket -> reality
|
||||||
|
03.09.2024 v1.46.2
|
||||||
|
- fix link v2ray
|
||||||
|
03.09.2024 v1.46.1
|
||||||
|
- fix import
|
||||||
|
- fix websocket domain
|
||||||
|
03.09.2024 v1.46
|
||||||
|
- возможность добавить кастомный поддомен для Letsencrypt
|
||||||
|
03.09.2024 v1.45
|
||||||
|
- выбор транспорта reality/websocket
|
||||||
|
26.08.2024 v1.44
|
||||||
|
- qr для xtls
|
||||||
|
- фикс действий на элементом списков
|
||||||
|
21.08.2024 v1.43
|
||||||
|
- singbox:поддержка кастомных outbound для ruleset
|
||||||
|
16.08.2024 v1.42.1
|
||||||
|
- фикс добавления рулсетов с длинными урл
|
||||||
|
16.08.2024 v1.42
|
||||||
|
- добавлена возможность сохранять/восстанавливать список доменов/правил маршрутизации
|
||||||
|
- изменена ссылка на сингбокс-конфиг для совместимости с клиентом сингбокса (фикс импорта в sing-box)
|
||||||
|
- sing-box: добавлена возможность добавлять свои packagename (outbound:proxy)
|
||||||
|
- sing-box: добавлена возможность добавлять свои ruleset с указанием outbound и временем обновления
|
||||||
|
- sing-box: списки доменов pac/warp/block трансформируются в собственный ruleset и присутствуют в шаблоне origin всегда, даже если они пустые. это дает возможность не ждать перезагрузки конфига клиентом
|
||||||
|
09.08.2024 v1.41.1
|
||||||
|
- фикс для "удалить все" в списках доменов
|
||||||
|
06.08.2024 v1.41
|
||||||
|
- возможность очистить РАС лист
|
||||||
03.08.2024 v1.40
|
03.08.2024 v1.40
|
||||||
- возможность менять MTU для Wireguard/Amnezia
|
- возможность менять MTU для Wireguard/Amnezia
|
||||||
- раздельный qr для AmneziaWG + AmneziaVPN
|
- раздельный qr для AmneziaWG + AmneziaVPN
|
||||||
|
|||||||
Reference in New Issue
Block a user