forked from UpstreamDataInc/goosebit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoosebit.yaml
70 lines (61 loc) · 1.94 KB
/
goosebit.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
62
63
64
65
66
67
68
69
70
## Settings to adjust for each installation
# Port to host the server on, default:
# port: 60053 # GOOSE ;)
# Database to be used, default:
# db_uri: sqlite:///<project root>/db.sqlite3
# Path to the directory containing artifact files, default:
# artifacts_dir: /<project root>/artifacts
# Frequency that devices should check for available updates.
poll_time_default: 00:01:00
# Frequency to log information during an update. Defines how often download progress
# and device logs get updated.
poll_time_updating: 00:00:05
# 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
# 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
# User account for the frontend. Available permissions:
# "software.read", "software.write", "software.delete"
# "device.read", "device.write", "device.delete"
# "rollout.read", "rollout.write", "rollout.delete"
users:
- username: admin@goosebit.local
password: admin
permissions:
- "*"
- username: ops@goosebit.local
password: ops
permissions:
- "device.read"
## Internal settings that usually don't need to be modified
poll_time_registration: 00:00:10
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]