From d667e3a73fdc70e6030c61dbb0cae48c31dd4748 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Thu, 26 Sep 2024 12:58:52 +1000 Subject: [PATCH] feat: Add nginx server configuration for clickhouse --- deploy/local/docker-compose/nginx/nginx.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/deploy/local/docker-compose/nginx/nginx.conf b/deploy/local/docker-compose/nginx/nginx.conf index c307f022..f8ca9f79 100644 --- a/deploy/local/docker-compose/nginx/nginx.conf +++ b/deploy/local/docker-compose/nginx/nginx.conf @@ -52,4 +52,17 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } } + + server { + listen 80; + server_name clickhouse.$HOSTNAME; + + location / { + proxy_pass http://xatu-clickhouse-01:8123; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + } } \ No newline at end of file