mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-21 22:44:43 +01:00
Move config files to .cfg.example
This makes sure that the actual configuration is not tracked in git, simplifying deployment.
This commit is contained in:
parent
c83e4842e9
commit
22db058e99
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
*.pyo
|
*.pyo
|
||||||
|
lg.cfg
|
||||||
|
lgproxy.cfg
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# Configuration file example for lg.py
|
||||||
|
# Adapt and copy to lg.cfg
|
||||||
|
|
||||||
WEBSITE_TITLE="Bird-LG / Looking Glass"
|
WEBSITE_TITLE="Bird-LG / Looking Glass"
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
LOG_FILE="/var/log/lg.log"
|
LOG_FILE="/var/log/lg.log"
|
||||||
|
@ -8,6 +11,7 @@ LOG_NUM_DAYS=0
|
||||||
DOMAIN = "tetaneutral.net"
|
DOMAIN = "tetaneutral.net"
|
||||||
|
|
||||||
# Used to optionally restrict access to lgproxy based on a shared secret.
|
# Used to optionally restrict access to lgproxy based on a shared secret.
|
||||||
|
# Empty string or unset = no shared secret is used to run queries on lgproxies.
|
||||||
SHARED_SECRET="ThisTokenIsNotSecret"
|
SHARED_SECRET="ThisTokenIsNotSecret"
|
||||||
|
|
||||||
BIND_IP = "0.0.0.0"
|
BIND_IP = "0.0.0.0"
|
||||||
|
@ -34,4 +38,5 @@ AS_NUMBER = {
|
||||||
# DNS zone to query for ASN -> name mapping
|
# DNS zone to query for ASN -> name mapping
|
||||||
ASN_ZONE = "asn.cymru.com"
|
ASN_ZONE = "asn.cymru.com"
|
||||||
|
|
||||||
|
# Used for secure session storage, change this
|
||||||
SESSION_KEY = '\xd77\xf9\xfa\xc2\xb5\xcd\x85)`+H\x9d\xeeW\\%\xbe/\xbaT\x89\xe8\xa7'
|
SESSION_KEY = '\xd77\xf9\xfa\xc2\xb5\xcd\x85)`+H\x9d\xeeW\\%\xbe/\xbaT\x89\xe8\xa7'
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Configuration file example for lgproxy.py
|
||||||
|
# Adapt and copy to lgproxy.cfg
|
||||||
|
|
||||||
DEBUG=False
|
DEBUG=False
|
||||||
|
|
||||||
|
@ -17,8 +19,9 @@ ACCESS_LIST = ["91.224.149.206", "178.33.111.110", "2a01:6600:8081:ce00::1"]
|
||||||
# Empty string or unset = no shared secret is required to run queries.
|
# Empty string or unset = no shared secret is required to run queries.
|
||||||
SHARED_SECRET="ThisTokenIsNotSecret"
|
SHARED_SECRET="ThisTokenIsNotSecret"
|
||||||
|
|
||||||
IPV4_SOURCE=""
|
# Used as source address when running traceroute (optional)
|
||||||
IPV6_SOURCE=""
|
IPV4_SOURCE="198.51.100.42"
|
||||||
|
IPV6_SOURCE="2001:db8:42::1"
|
||||||
|
|
||||||
BIRD_SOCKET="/var/run/bird/bird.ctl"
|
BIRD_SOCKET="/var/run/bird/bird.ctl"
|
||||||
BIRD6_SOCKET="/var/run/bird/bird6.ctl"
|
BIRD6_SOCKET="/var/run/bird/bird6.ctl"
|
Loading…
Reference in a new issue