server { listen 8124; # ClickStack UI staatiline kest (ClickHouse serveerib /clickstack/) location /clickstack/ { proxy_pass http://clickhouse:8123; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } # HyperDX backend (ClickStack API) location = /__ENV.js { proxy_pass http://clickstack:8080/__ENV.js; proxy_set_header Host $host; } location /api/ { proxy_pass http://clickstack:8080; proxy_set_header Host $host; } location /graphql { proxy_pass http://clickstack:8080; proxy_set_header Host $host; } location /ws { proxy_pass http://clickstack:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } # Kõik muu -> ClickHouse location / { proxy_pass http://clickhouse:8123; proxy_set_header Host $host; } }