|
@@ -1,34 +1,38 @@
|
|
|
server {
|
|
server {
|
|
|
listen 8124;
|
|
listen 8124;
|
|
|
|
|
|
|
|
- # ClickStack UI staatiline kest (ClickHouse serveerib /clickstack/)
|
|
|
|
|
|
|
+ # Dockeri sisemine DNS: nginx resolvib nimed uuesti (ei jää aegunud IP külge,
|
|
|
|
|
+ # kui clickstack recreate'itakse).
|
|
|
|
|
+ resolver 127.0.0.11 valid=10s ipv6=off;
|
|
|
|
|
+
|
|
|
|
|
+ # ÜHTLUSTATUD: ClickStack UI tee suunatakse kanoonilisele HyperDX UI-le (v2.37, :18080).
|
|
|
|
|
+ # ClickHouse'i kaasasolev /clickstack/ on v2.28 local-mode ega ühti meie stack'iga (vt LOEMIND).
|
|
|
location /clickstack/ {
|
|
location /clickstack/ {
|
|
|
- proxy_pass http://clickhouse:8123;
|
|
|
|
|
- proxy_set_header Host $host;
|
|
|
|
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
|
|
+ return 302 http://100.87.1.24:18080/;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
# HyperDX backend (ClickStack API)
|
|
# HyperDX backend (ClickStack API)
|
|
|
|
|
+ set $hdx clickstack:8080;
|
|
|
location = /__ENV.js {
|
|
location = /__ENV.js {
|
|
|
- proxy_pass http://clickstack:8080/__ENV.js;
|
|
|
|
|
|
|
+ proxy_pass http://$hdx/__ENV.js;
|
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
|
}
|
|
}
|
|
|
location /api/ {
|
|
location /api/ {
|
|
|
- proxy_pass http://clickstack:8080;
|
|
|
|
|
|
|
+ proxy_pass http://$hdx;
|
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
|
}
|
|
}
|
|
|
location /graphql {
|
|
location /graphql {
|
|
|
- proxy_pass http://clickstack:8080;
|
|
|
|
|
|
|
+ proxy_pass http://$hdx;
|
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
|
}
|
|
}
|
|
|
location /ws {
|
|
location /ws {
|
|
|
- proxy_pass http://clickstack:8080;
|
|
|
|
|
|
|
+ proxy_pass http://$hdx;
|
|
|
proxy_http_version 1.1;
|
|
proxy_http_version 1.1;
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Connection "upgrade";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- # Kõik muu -> ClickHouse
|
|
|
|
|
|
|
+ # Kõik muu -> ClickHouse (DBeaver jm otsepäringud)
|
|
|
location / {
|
|
location / {
|
|
|
proxy_pass http://clickhouse:8123;
|
|
proxy_pass http://clickhouse:8123;
|
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|