You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/config.yml
+1-1
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,7 @@ port: 53
185
185
# optional: HTTPS listener port(s) and bind ip address(es), default empty = no http listener. If > 0, will be used for prometheus metrics, pprof, REST API, DoH... Example: 443, :443, 127.0.0.1:443
186
186
httpPort: 4000
187
187
#httpsPort: 443
188
-
#mandatory, if https port > 0: path to cert and key file for SSL encryption
188
+
# if https port > 0: path to cert and key file for SSL encryption. if not set, self-signed certificate will be generated
189
189
#certFile: server.crt
190
190
#keyFile: server.key
191
191
# optional: use this DNS server to resolve blacklist urls and upstream DNS servers. Useful if no DNS resolver is configured and blocky needs to resolve a host name. Format net:IP:port, net must be udp or tcp
Copy file name to clipboardexpand all lines: docs/configuration.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ configuration properties as [JSON](config.yml).
17
17
| tlsPort |[IP]:port[,[IP]:port]*| no || Port(s) and optional bind ip address(es) to serve DoT DNS endpoint (DNS-over-TLS). If you wish to specify a specific IP, you can do so such as `192.168.0.1:853`. Example: `83`, `:853`, `127.0.0.1:853,[::1]:853`|
18
18
| httpPort |[IP]:port[,[IP]:port]*| no || Port(s) and optional bind ip address(es) to serve HTTP used for prometheus metrics, pprof, REST API, DoH... If you wish to specify a specific IP, you can do so such as `192.168.0.1:4000`. Example: `4000`, `:4000`, `127.0.0.1:4000,[::1]:4000`|
19
19
| httpsPort |[IP]:port[,[IP]:port]*| no || Port(s) and optional bind ip address(es) to serve HTTPS used for prometheus metrics, pprof, REST API, DoH... If you wish to specify a specific IP, you can do so such as `192.168.0.1:443`. Example: `443`, `:443`, `127.0.0.1:443,[::1]:443`|
20
-
| certFile | path |yes, if httpsPort > 0 || Path to cert and key file for SSL encryption (DoH and DoT)|
21
-
| keyFile | path | yes, if httpsPort > 0 | | Path to cert and key file for SSL encryption (DoH and DoT)
20
+
| certFile | path |no || Path to cert and key file for SSL encryption (DoH and DoT); if empty, self-signed certificate is generated|
21
+
| keyFile | path |no || Path to cert and key file for SSL encryption (DoH and DoT); if empty, self-signed certificate is generated |
22
22
| logLevel | enum (debug, info, warn, error) | no | info | Log level |
23
23
| logFormat | enum (text, json) | no | text | Log format (text or json). |
24
24
| logTimestamp | bool | no | true | Log time stamps (true or false). |
0 commit comments