Skip to content

Commit

Permalink
feat: Add nginx server configuration for clickhouse
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Sep 26, 2024
1 parent 6201a63 commit d667e3a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deploy/local/docker-compose/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit d667e3a

Please sign in to comment.