nginx.conf 992 B

123456789101112131415161718192021222324252627282930313233343536
  1. server {
  2. listen 8124;
  3. # ClickStack UI staatiline kest (ClickHouse serveerib /clickstack/)
  4. location /clickstack/ {
  5. proxy_pass http://clickhouse:8123;
  6. proxy_set_header Host $host;
  7. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  8. }
  9. # HyperDX backend (ClickStack API)
  10. location = /__ENV.js {
  11. proxy_pass http://clickstack:8080/__ENV.js;
  12. proxy_set_header Host $host;
  13. }
  14. location /api/ {
  15. proxy_pass http://clickstack:8080;
  16. proxy_set_header Host $host;
  17. }
  18. location /graphql {
  19. proxy_pass http://clickstack:8080;
  20. proxy_set_header Host $host;
  21. }
  22. location /ws {
  23. proxy_pass http://clickstack:8080;
  24. proxy_http_version 1.1;
  25. proxy_set_header Upgrade $http_upgrade;
  26. proxy_set_header Connection "upgrade";
  27. }
  28. # Kõik muu -> ClickHouse
  29. location / {
  30. proxy_pass http://clickhouse:8123;
  31. proxy_set_header Host $host;
  32. }
  33. }