mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 15:19:08 +00:00
Add NTP Server Configuration
This commit is contained in:
parent
6f396b3833
commit
afbfed5cb6
5 changed files with 95 additions and 0 deletions
13
internal/chrony/template/config.tmpl
Normal file
13
internal/chrony/template/config.tmpl
Normal file
|
@ -0,0 +1,13 @@
|
|||
pool pool.ntp.org iburst
|
||||
driftfile /var/lib/chrony/drift
|
||||
makestep 1.0 3
|
||||
rtcsync
|
||||
keyfile /etc/chrony.keys
|
||||
ntsdumpdir /var/lib/chrony
|
||||
leapsectz right/UTC
|
||||
logdir /var/log/chrony
|
||||
|
||||
# Allowed Networks
|
||||
{{- range $i, $server := .Service.NTPServers }}
|
||||
allow {{ getInterfaceNetworkAddressCIDR $ $server.Interface }}
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue