Compare commits

..

1 Commits

Author SHA1 Message Date
mercury 3dff9e039f non-wiped additional nginx configurations 2025-07-19 22:48:28 +04:00
7 changed files with 26 additions and 6 deletions
+4 -1
View File
@@ -27,4 +27,7 @@ backup.json
app/webapp/override/
.rest
subscription.php
subscription.php
location.conf
override.conf
i18n.override.php
+4
View File
@@ -378,3 +378,7 @@ $i = [
'ru' => 'перезагрузка',
],
];
if (file_exists(__DIR__ . '/i18n.override.php')) {
include __DIR__ . '/i18n.override.php';
}
+4 -1
View File
@@ -11,7 +11,7 @@ events {
http {
server_names_hash_bucket_size 64;
server_tokens off;
include include.conf;
include override.conf;
include /etc/nginx/mime.types;
default_type application/octet-stream;
@@ -122,6 +122,7 @@ http {
proxy_cache_key $scheme$proxy_host$uri$is_args$args$request_body;
proxy_pass https://ad/dns-query;
}
include location.conf;
}
#~
@@ -210,6 +211,8 @@ http {
# proxy_cache_key $scheme$proxy_host$uri$is_args$args$request_body;
# proxy_pass https://ad/dns-query;
# }
# include location.conf;
# }
#-domain
}
+4 -1
View File
@@ -11,7 +11,7 @@ events {
http {
server_names_hash_bucket_size 64;
server_tokens off;
include include.conf;
include override.conf;
include /etc/nginx/mime.types;
default_type application/octet-stream;
@@ -122,6 +122,7 @@ http {
proxy_cache_key $scheme$proxy_host$uri$is_args$args$request_body;
proxy_pass https://ad/dns-query;
}
include location.conf;
}
#~
@@ -210,6 +211,8 @@ http {
# proxy_cache_key $scheme$proxy_host$uri$is_args$args$request_body;
# proxy_pass https://ad/dns-query;
# }
# include location.conf;
# }
#-domain
}
+2 -1
View File
@@ -75,7 +75,8 @@ services:
volumes:
- ./config/.profile:/root/.ashrc:ro
- ./config/nginx.conf:/etc/nginx/nginx.conf
- ./config/include.conf:/etc/nginx/include.conf
- ./config/override.conf:/etc/nginx/override.conf
- ./config/location.conf:/etc/nginx/location.conf
- ./config/nginx_default.conf:/nginx_default.conf
- ./scripts/start_ng.sh:/start_ng.sh
- ./certs/:/certs/
+1 -1
View File
@@ -3,7 +3,7 @@ b:
u: # запуск контейнеров
$(eval IP := $(shell hostname -I | awk '{print $$1}'))
bash ./update/update.sh &
touch ./override.env ./docker-compose.override.yml
touch ./override.env ./docker-compose.override.yml ./config/location.conf ./config/override.conf
IP=$(IP) VER=$(shell git describe --tags) docker compose --env-file ./.env --env-file ./override.env up -d --force-recreate
d: # остановка контейнеров
-kill -9 $(shell cat ./update/update_pid) > /dev/null
+7 -1
View File
@@ -1,4 +1,10 @@
16.07.2025 v2.23
19.07.2025 v2.25
- перед запуском обязательно запустить:
<pre>touch ./override.env ./docker-compose.override.yml ./config/location.conf ./config/override.conf</pre>
- для nginx вместо include.conf теперь override.conf, не затирается
- location.conf (by legiz), не затирается
- app/i18n.override.php для собственных названий кнопок, не затирается
16.07.2025 v2.24
- фикс зависания бота из-за пустого статуса warp
- скрипт socat.sh для мостов /mirror
04.07.2025 v2.23