mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
moved config files
This commit is contained in:
parent
75b4aa3bd1
commit
afc3f8a25d
3 changed files with 40 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,3 +5,5 @@ birdwatcher
|
|||
birdwatcher-*
|
||||
|
||||
DIST/
|
||||
|
||||
*.local.*
|
||||
|
|
|
@ -43,9 +43,9 @@ func main() {
|
|||
|
||||
// Load configurations
|
||||
conf, err := LoadConfigs([]string{
|
||||
"./etc/birdwatcher/birdwatcher.conf",
|
||||
"/etc/birdwatcher/birdwatcher.conf",
|
||||
"./etc/birdwatcher/birdwatcher.local.conf",
|
||||
"./etc/ecix/birdwatcher.conf",
|
||||
"/etc/ecix/birdwatcher.conf",
|
||||
"./etc/ecix/birdwatcher.local.conf",
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
|
35
etc/ecix/birdwatcher.conf
Normal file
35
etc/ecix/birdwatcher.conf
Normal file
|
@ -0,0 +1,35 @@
|
|||
|
||||
|
||||
#
|
||||
# Birdwatcher Configuration
|
||||
#
|
||||
|
||||
[server]
|
||||
# Restrict access to certain IPs. Leave empty to allow from all.
|
||||
allow_from = []
|
||||
|
||||
|
||||
[status]
|
||||
#
|
||||
# Where to get the reconfigure timestamp from:
|
||||
# Available sources: bird, config_regex, config_modified
|
||||
#
|
||||
reconfig_timestamp_source = "bird"
|
||||
reconfig_timestamp_match = "# Created (.*)"
|
||||
|
||||
# Remove fields e.g. uptime
|
||||
filter_fields = []
|
||||
|
||||
|
||||
[bird]
|
||||
listen = "0.0.0.0:29184"
|
||||
config = "/etc/bird.conf"
|
||||
birdc = "birdc"
|
||||
|
||||
|
||||
[bird6]
|
||||
listen = "0.0.0.0:29185"
|
||||
config = "/etc/bird6.conf"
|
||||
birdc = "birdc6"
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue