-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgoosebit.yaml
77 lines (67 loc) · 2.28 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
71
72
73
74
75
76
77
## 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: 00:01:00
# 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.
# - 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
# 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
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]