-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathgoosebit.yaml
More file actions
107 lines (89 loc) · 3.5 KB
/
goosebit.yaml
File metadata and controls
107 lines (89 loc) · 3.5 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
## Settings to adjust for each installation
# Port to host the server on, default:
#port: 60053 # GOOSE ;)
# Tenant for DDI endpoint
#tenant: DEFAULT
# Database to be used, default:
#db_uri: sqlite:///<project root>/db.sqlite3
#db_ssl_crt: /<project root>/ca-certificate.crt
# Storage settings (default backend is "filesystem")
#storage:
# backend: s3
# s3:
# bucket: goosebit
# region: us-east-1
# endpoint_url: http://localhost:9000 # example for self-hosted min.io
# access_key_id: minioadmin
# secret_access_key: minioadmin
# Path to the directory containing artifact files, default:
#artifacts_dir: /<project root>/artifacts
# Frequency that devices should check for available updates.
poll_time: 00:01:00
# Limit the number of updates that run at the same time. Can be used to avoid overloading the update server.
#max_concurrent_updates: 1000
# Whether to track the IP of the device when it polls. Useful for debugging, but can be turned off for privacy.
#track_device_ip: true
# Device authentication settings
# Token-based device authentication
#device_auth:
# enable: false
# The auth mode, one of:
# - strict: Strict mode, all devices must have keys, and all keys must be set via the API.
# - external: All devices must have keys, keys must be validated by external auth service.
# - lax: Lax mode, devices which have keys must use them, but devices without keys do not require them.
# - setup: Setup mode, any devices polling with an auth token that don't have one will save it.
# Setup mode is designed for users migrating from other services, it makes setting up existing devices easy.
# mode: strict
# The external URL to validate tokens (to be used with "mode: external")
# external_url: http://localhost:8000/auth
# External mode, one of: bearer, json (to be used with "mode: external")
# external_mode: json
# The external JSON key to use when performing POST request.
# If not specified, "token" is used by default (to be used with "external_mode: json")
# external_json_key: token
# Secret key used for parsing user sessions. It is HIGHLY advised to pass this as an environment variable instead.
# Defaults to a randomized value. If this value is not set, user sessions will not persist when app restarts.
#secret_key: my_very_top_secret_key123
# Regular expression to extract board name and revision from RAUC compatible string.
# HW revision support is disabled by default when using RAUC.
# By uncommenting the following line, the last part of the compatible string, separated by a hyphen, will be
# interpreted as the HW revision, e.g.: myboard-rev1.0a
#rauc_compatible_pattern: ^(?P<hw_boardname>.+?)(-(?P<hw_revision>\w*[\d.]+\w*))?$
# A list of installed plugins that you want to enable in gooseBit
#plugins:
# - goosebit_simple_stats
# - goosebit_forwarded_header
# A required setting in case you want to test the example plugin
#simple_stats_show:
# - device_count
# - software_count
## Internal settings that usually don't need to be modified
metrics:
prometheus:
enable: false
logging:
version: 1
formatters:
simple:
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
handlers:
console:
class: logging.StreamHandler
formatter: simple
level: DEBUG
loggers:
tortoise:
handlers: [console]
level: WARNING
propagate: yes
aiosqlite:
handlers: [console]
level: WARNING
propagate: yes
multipart:
handlers: [console]
level: INFO
propagate: yes
root:
level: INFO
handlers: [console]