CI/CD: ci, deploy-ift/stage; nginx DNS resolver для admin-ui proxy

This commit is contained in:
2026-07-08 14:50:55 +03:00
parent 3a9ee13999
commit efa7f826aa
4 changed files with 118 additions and 2 deletions
+7 -2
View File
@@ -3,12 +3,16 @@ server {
root /usr/share/nginx/html;
index index.html;
# Docker embedded DNS — не кэшировать IP upstream при redeploy eventhub
resolver 127.0.0.11 valid=10s ipv6=off;
location / {
try_files $uri $uri/ /index.html;
}
location /v1/ {
proxy_pass http://eventhub:8445; # admin-api слушает HTTP на порту 8445
set $eventhub_api eventhub;
proxy_pass http://$eventhub_api:8445;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@@ -17,7 +21,8 @@ server {
}
location /admin/ws {
proxy_pass http://eventhub:8446; # admin-ws слушает HTTP на порту 8446
set $eventhub_ws eventhub;
proxy_pass http://$eventhub_ws:8446;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";