-
Notifications
You must be signed in to change notification settings - Fork 21
/
.env.example
63 lines (52 loc) · 2.82 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# Bird's Eye - see https://github.com/inex/birdseye
#
# Values that are commented show their default setting.
# To query Bird securely, we use a wrapper script
BIRDC="/usr/bin/sudo /path/to/birdseye/bin/birdc -6 -s /path/to/bird/socket"
# We use caching as a natural API -> birdc rate limiter
# Changing to 'array' will disable the cache but this is strongly discouraged
# [this is Memcache for 127.0.0.1:11211 by default]
CACHE_DRIVER=file
# A cache key is required only if relying on a default .env configuration.
# If you're relying on the automated configuration discovery detailed at:
# https://github.com/inex/birdseye#configuration
# then this is set automatically and appropriatly.
# BIRDSEYE_CACHE_KEY="SomeCacheKey"
# Set to true for testing / debugging.
# This will provide stack dumps and reveal internal logic / configuration.
# It also added "env" and "cache_disabled" to the api section of responses.
# APP_DEBUG=false
# For testing, we have including some real Bird IPv4 dumps.
# Setting to true makes Bird's Eye use those rather than querying a local Bird daemon
# USE_BIRD_DUMMY=false
# Time (in monutes - Lumen restriction) to store cache objects for:
# CACHE_SHOW_STATUS=1
# CACHE_SHOW_SYMBOLS=5
# CACHE_PROTOCOLS=2
# CACHE_ROUTES=5
# Maximum routes that will be sent back in an API query. We have not created pagination yet so this will be
# a hard limit. The looking glass implementation does not add links for tables / protocols exceeding this.
# Aborts with a 403 when a table/protocol route list has more than this. Uses 'show route ... count' internally.
# MAX_ROUTES=1000
# Maximum API requests per client per minute
# THROTTLE_PER_MIN=20
# This micro server also includes a built in looking glass which can be enabled by setting this to true
# The loogking glass is really just to deomostrate the API and uses the same API calls internally as
# are publically available. If enabled, it's available under /lg
# LOOKING_GLASS_ENABLED=false
# Page title for looking glass [note: {!VERSION!} will be replaced with the actual version]
# LOOKING_GLASS_TITLE="Bird's Eye Looking Glass - API V{!VERSION!}"
# The LG displays the BGP protocol description. These can sometimes be internal
# machine generated / unwieldy strings. If you want to pluck out just a bit of
# this you can set a regex here and, when valid and matches against the description,
# it plucks the first subpattern match (i.e. (xxx) ) and sets that in
# the API response as description_short. The frontend LG will also prefer this if set.
#
# Note that the system adds anchors and Bird output matching so the evaluated regex is:
# '/^\s+Description:\s+' . env( 'PARSER_PROTOCOL_BGP_DESCRIPTION' ) . '$/'
#
# E.g. to pluck 'ppp-rb01' out of 'RR Client - ppp-rb01', you might use:
# PARSER_PROTOCOL_BGP_DESCRIPTION=".*\s+([a-zA-Z0-9\-_]+)"
#
#PARSER_PROTOCOL_BGP_DESCRIPTION=""