mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-14 03:14:42 +01:00
70236fbac4
BIRD-LG currently keeps log files indefinitely. This patch allows setting the number of days logs should be kept for by adding a `LOG_NUM_DAYS` parameter in the configuration files. This change is backwards compatible: Running the updated code with old configuration files will keep logs indefinitely as before; new deployments based on the example configuration will keep logs indefinitely.
26 lines
681 B
INI
26 lines
681 B
INI
|
|
DEBUG=False
|
|
|
|
LOG_FILE="/var/log/lg-proxy/lg-proxy.log"
|
|
LOG_LEVEL="WARNING"
|
|
# Keep log history indefinitely by default.
|
|
LOG_NUM_DAYS=0
|
|
|
|
BIND_IP = "0.0.0.0"
|
|
BIND_PORT = 5000
|
|
|
|
# Used to restrict access to lgproxy based on source IP address.
|
|
# Empty list = any IP is allowed to run queries.
|
|
ACCESS_LIST = ["91.224.149.206", "178.33.111.110", "2a01:6600:8081:ce00::1"]
|
|
|
|
# Used to restrict access to lgproxy based on a shared secret (must also be configured in lg.cfg)
|
|
# Empty string or unset = no shared secret is required to run queries.
|
|
SHARED_SECRET="ThisTokenIsNotSecret"
|
|
|
|
IPV4_SOURCE=""
|
|
IPV6_SOURCE=""
|
|
|
|
BIRD_SOCKET="/var/run/bird/bird.ctl"
|
|
BIRD6_SOCKET="/var/run/bird/bird6.ctl"
|
|
|