Skip to content

Commit 2ee1558

Browse files
committed
Small changes
1 parent 7ec9b18 commit 2ee1558

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

knowledgebase/custom-dns-alias-for-instance.mdx

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
---
22
title: Create a custom DNS alias by setting up a reverse proxy
3-
description: Learn how to setup a custom DNS alias for your instance
3+
description: Learn how to set up a custom DNS alias for your instance using a reverse proxy
44
date: 2025-05-16
55
tags: ['Server Admin', 'Security and Authentication']
66
keywords: ['custom DNS alias', 'DNS']
7+
hide_title: true
78
---
89

910
{frontMatter.description}
1011
{/* truncate */}
1112

13+
<br/>
14+
<br/>
1215
# Custom DNS alias by setting up reverse proxy {#custom-dns-alias}
1316

14-
In this knowledgebase article we will walk you through how you can set up a
15-
custom DNS alias for your ClickHouse Cloud instance by setting up a reverse
17+
> In this knowledgebase article, we will walk you through how you can set up a
18+
custom DNS alias for your ClickHouse Cloud instance through the use of a reverse
1619
proxy such as Nginx for ClickHouse native client.
1720

1821
## Create a self-signed certificate {#create-certificate}
1922

2023
:::note
21-
This step is not needed if you are using signed certificates
24+
This step is not needed if you are using signed certificates.
2225
:::
2326

2427
Create a self-signed certificate with the domain name of your choice.
2528
In this example we will use a domain name `xyz-customdomain.com` and
26-
create a certificate `MyCertificate.crt`.
29+
create a certificate called `MyCertificate.crt`. Refer to ["Create SSL certificates"](/guides/sre/configuring-ssl#2-create-ssl-certificates)
30+
for further details.
2731

28-
Add the following into `/etc/clickhouse-client/config.xml`:
32+
Add the certificate to `/etc/clickhouse-client/config.xml`:
2933

3034
```yaml
3135
<clickhouse>
@@ -54,7 +58,7 @@ proxy_ssl_name xyz.us-west-2.aws.clickhouse.cloud;
5458
proxy_ssl_server_name on;
5559
```
5660

57-
```
61+
```text
5862
stream {
5963
upstream stream_backend {
6064
server xyz.us-west-2.aws.clickhouse.cloud:9440;
@@ -75,7 +79,9 @@ stream {
7579
proxy_ssl_trusted_certificate /etc/ssl/certs/isrgrootx1.pem;
7680
proxy_ssl_session_reuse on;
7781
proxy_ssl_verify on;
82+
#highlight-next-line
7883
proxy_ssl_name xyz.us-west-2.aws.clickhouse.cloud;
84+
#highlight-next-line
7985
proxy_ssl_server_name on;
8086
}
8187
}
@@ -102,6 +108,8 @@ Where `10.X.Y.Z` is the IP address of your specific Nginx box.
102108

103109
## Connect to Cloud using alias {#connect-to-cloud-using-alias}
104110

111+
You are now ready to connect using your custom alias:
112+
105113
```bash
106114
clickhouse-client --host xyz.customdomain.com --secure --password 'xxxxxxx'
107115
ClickHouse client version 23.12.1.428 (official build).

0 commit comments

Comments
 (0)