-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.config.yaml
61 lines (57 loc) · 6.49 KB
/
example.config.yaml
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
devices: # List of devices
- name: "Example Device" # freetext name
type: "Example Device Type" # device model to use (frrouting, cisco, juniper, ...)
location: "Stockholm, Sweden" # freetext location for grouping/display in UI
hostname: "rt.example.com:22" # hostname or IP as well as SSH Port
username: "rouser" # username
password: "password123" # password (optional) or
ssh_key: "/path/to/ssh_key" # SSH private key path (optional)
source4: "192.168.1.1" # IPv4 source, such as your rt's loopback (required)
source6: "2001:db8::1" # IPv6 source, such as your rt's loopback (required)
vrf: "vrf1" # VRF name, most platforms use 'default' if no VRF is used (required)
grpc: # gRPC Server Settings
enabled: true # Enable or disable GRPC endpoints
listen: ":8080" # gRPC listener
tls: # TLS Settings often required for h2c
enabled: false # Enable or disable TLS
self_signed: true # Generate self-signed dummy certificate on-the-fly, this usually suffices for most ingress/proxy setups
cert: "/path/to/cert" # certificate path (becomes optional if self_signed is true)
key: "/path/to/key" # private key path (becomes optional if self_signed is true)
redis: # Redis Cache Settings
enabled: true # Enable or disable cache
ttl: 5m # Cache TTL in seconds
uri: "redis://redis-svc:6379/0?protocol=3" # Redis host URI
web: # WebUI Settings, Most if not all of these are entirely optional
enabled: true # Enable or disable web interface
grpc_url: "" # URI of the GRCP server; uses current host as viewed by the browser if not set (optional)
theme: "skeleton" # Theme, possible options are: skeleton, wintry, modern, rocket, seafoam, vintage, sahara, hamlindingo, gold-nouveau, crimson (ref https://www.skeleton.dev/docs/themes)
title: "Example Web Page" # Freetext web page title (recommended)
rt_list_max: 4 # Maximum number of devices to display as list before grouping by location (optional, defaults to 4, use -1 to force grouping by location)
header: # Header navbar definitions (recommended)
text: "Welcome to Example Website" # Freetext header text, will be centered (recommended)
logo: "/path/to/logo" # Header logo path (optional)
links: # List of links to add to the topbar (optional)
- text: "Example Link" # Example link text
url: "https://example.com" # Example link URL
footer: # Footer navbar definitions (optional)
text: "© 2024 Example Company" # Freetext footer text, will be centered (optional)
logo: "/path/to/footer_logo" # Example footer logo path (optional)
links: # List of links to add to the footer (optional)
- text: "Privacy Policy" # Example link text
url: "https://example.com/privacy" # Example link URL
sentry: # Sentry error reporting settings (optional)
enabled: false # Enable or disable Sentry error reporting
dsn: "https://xxx.sentry.io/yyy" # DSN (optional, URL is not validated for correctness)
environment: "production" # Environment (optional, defaults to nothing which is interpreted by sentry as 'production')
sample_rate: 1.0 # Trace sample rate (optional, defaults to 0.0 which disables trace sampling but not error reporting)
security.txt: # See https://www.rfc-editor.org/rfc/rfc9116 for field descriptions
enabled: true # Enable or disable security.txt generation
acknowledgements: "https://example.com/hall-of-fame.html"
canonical: "https://example.com/.well-known/security.txt"
contact: "mailto:[email protected]"
csaf: "https://example.com/.well-known/csaf/provider-metadata.json" # https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#718-requirement-8-securitytxt
encryption: "https://keybase.io/example.com"
expires: "2023-12-31T23:59:59Z" # Optional expiration date, will auto-generate one within 1 year if not set
hiring: "https://example.com/careers"
policy: "https://example.com/security-policy"
preferred-languages: "en, fr"