|
11 | 11 | <count>{{ clickhouse_logger.count }}</count> |
12 | 12 | </logger> |
13 | 13 |
|
| 14 | +{% if clickhouse_https_port is defined %} |
| 15 | + <https_port>{{ clickhouse_https_port }}</https_port> |
| 16 | +{% else %} |
14 | 17 | <http_port>{{ clickhouse_http_port }}</http_port> |
15 | | - <tcp_port>{{ clickhouse_tcp_port }}</tcp_port> |
| 18 | +{% endif %} |
16 | 19 |
|
17 | | - <!-- For HTTPS and SSL over native protocol. --> |
18 | | - <!-- |
19 | | - <https_port>{{ clickhouse_https_port }}</https_port> |
| 20 | +{% if clickhouse_tcp_secure_port is defined %} |
20 | 21 | <tcp_port_secure>{{ clickhouse_tcp_secure_port }}</tcp_port_secure> |
21 | | - --> |
| 22 | +{% else %} |
| 23 | + <tcp_port>{{ clickhouse_tcp_port }}</tcp_port> |
| 24 | +{% endif %} |
22 | 25 |
|
23 | 26 | <!-- Used with https_port and tcp_port_secure. Full ssl options list: https://github.com/ClickHouse-Extras/poco/blob/master/NetSSL_OpenSSL/include/Poco/Net/SSLManager.h#L71 --> |
24 | 27 | <openSSL> |
25 | 28 | <server> <!-- Used for https server AND secure tcp port --> |
26 | 29 | <!-- openssl req -subj "/CN=localhost" -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout /etc/clickhouse-server/server.key -out /etc/clickhouse-server/server.crt --> |
27 | | - <certificateFile>/etc/clickhouse-server/server.crt</certificateFile> |
28 | | - <privateKeyFile>/etc/clickhouse-server/server.key</privateKeyFile> |
| 30 | + <certificateFile>{{ clickhouse_ssl_server.certificate_file }}</certificateFile> |
| 31 | + <privateKeyFile>{{ clickhouse_ssl_server.private_key_file }}</privateKeyFile> |
29 | 32 | <!-- openssl dhparam -out /etc/clickhouse-server/dhparam.pem 4096 --> |
30 | | - <dhParamsFile>/etc/clickhouse-server/dhparam.pem</dhParamsFile> |
31 | | - <verificationMode>none</verificationMode> |
32 | | - <loadDefaultCAFile>true</loadDefaultCAFile> |
33 | | - <cacheSessions>true</cacheSessions> |
34 | | - <disableProtocols>sslv2,sslv3</disableProtocols> |
35 | | - <preferServerCiphers>true</preferServerCiphers> |
| 33 | + <dhParamsFile>{{ clickhouse_ssl_server.dh_params_file }}</dhParamsFile> |
| 34 | + <verificationMode>{{ clickhouse_ssl_server.verification_mode }}</verificationMode> |
| 35 | + <loadDefaultCAFile>{{ clickhouse_ssl_server.load_default_ca_file }}</loadDefaultCAFile> |
| 36 | + <cacheSessions>{{ clickhouse_ssl_server.cache_sessions }}</cacheSessions> |
| 37 | + <disableProtocols>{{ clickhouse_ssl_server.disable_protocols }}</disableProtocols> |
| 38 | + <preferServerCiphers>{{ clickhouse_ssl_server.prefer_server_ciphers }}</preferServerCiphers> |
36 | 39 | </server> |
37 | 40 |
|
38 | 41 | <client> <!-- Used for connecting to https dictionary source --> |
39 | | - <loadDefaultCAFile>true</loadDefaultCAFile> |
40 | | - <cacheSessions>true</cacheSessions> |
41 | | - <disableProtocols>sslv2,sslv3</disableProtocols> |
42 | | - <preferServerCiphers>true</preferServerCiphers> |
| 42 | + <loadDefaultCAFile>{{ clickhouse_ssl_client.load_default_ca_file }}</loadDefaultCAFile> |
| 43 | + <cacheSessions>{{ clickhouse_ssl_client.cache_sessions }}</cacheSessions> |
| 44 | + <disableProtocols>{{ clickhouse_ssl_client.disable_protocols }}</disableProtocols> |
| 45 | + <preferServerCiphers>{{ clickhouse_ssl_client.prefer_server_ciphers }}</preferServerCiphers> |
43 | 46 | <!-- Use for self-signed: <verificationMode>none</verificationMode> --> |
44 | 47 | <invalidCertificateHandler> |
45 | 48 | <!-- Use for self-signed: <name>AcceptCertificateHandler</name> --> |
46 | | - <name>RejectCertificateHandler</name> |
| 49 | + <name>{{ clickhouse_ssl_client.invalid_certificate_handler_name }}</name> |
47 | 50 | </invalidCertificateHandler> |
48 | 51 | </client> |
49 | 52 | </openSSL> |
|
54 | 57 | --> |
55 | 58 |
|
56 | 59 | <!-- Port for communication between replicas. Used for data exchange. --> |
| 60 | +{% if clickhouse_interserver_https is defined %} |
| 61 | + <interserver_https_port>{{ clickhouse_interserver_https }}</interserver_https_port> |
| 62 | +{% else %} |
57 | 63 | <interserver_http_port>{{ clickhouse_interserver_http }}</interserver_http_port> |
| 64 | +{% endif %} |
| 65 | + |
| 66 | +{% if clickhouse_interserver_http_credentials is defined %} |
| 67 | +<interserver_http_credentials> |
| 68 | + <user>{{ clickhouse_interserver_http_credentials.user }}</user> |
| 69 | + <password>{{ clickhouse_interserver_http_credentials.password }}</password> |
| 70 | +</interserver_http_credentials> |
| 71 | +{% endif %} |
| 72 | + |
58 | 73 |
|
59 | 74 | <!-- Hostname that is used by other replicas to request this server. |
60 | 75 | If not specified, than it is determined analoguous to 'hostname -f' command. |
|
0 commit comments