This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add configuration layer for the whole app
- Loading branch information
Showing
6 changed files
with
261 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ dist/ | |
.DS_Store | ||
tmp | ||
localdns.db | ||
.localdns.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
--- | ||
|
||
# specify the external dns to resolve unknown domain names | ||
forward_to: 8.8.8.8:53 | ||
|
||
# enable or disable local dns features | ||
features: | ||
udp_enable: true | ||
tcp_enabled: true | ||
grpc_enabled: true | ||
prometheus_enabled: true | ||
remote_server: 8.8.8.8:53 | ||
|
||
# configuration per services exposed by localdns | ||
servers: | ||
dns: | ||
dns_tcp: | ||
addr: :8053 | ||
enabled: true | ||
dns_udp: | ||
addr: :8053 | ||
enabled: true | ||
grpc: | ||
addr: :8080 | ||
enabled: true | ||
prometheus: | ||
addr: :9090 | ||
enabled: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.