-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-example.yml
More file actions
78 lines (66 loc) · 2.21 KB
/
config-example.yml
File metadata and controls
78 lines (66 loc) · 2.21 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
# Configuration for the web interface with its connections
web:
# List all service endpoints
# for example a http service
service-http:
# host to listen on (all interfaces if omitted)
host: localhost
# listening port
port: 8080
# and a https service
service-https:
port: 80443
# SSL cert
# openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365
cert: cert.pem
key: key.pem
# Limit access to server (IPv4 & 6, but no host names!)
access:
# if 'allow' is set, the IP of every client using the webservice must match at least one of its entries
# (you can use '*' as wildcard character)
allow:
- 127.0.0.1
- ::1
# each of the following IPs will be denied even if it matches an allowed entry
deny:
- 123.0.0.2
# Configuration for Matrix message bot
matrix:
# Account
homeserver: "https://matrix.fau.de"
user: "@i4bot:fau.de"
password: "correcthorsebatterystaple"
# Default server for user (if domain is missing)
domain: "fau.de"
# Limit access to Matrix users / rooms
access:
# if 'allow' is set, every receiver must match at least one of its entries
# (you can use '*' as wildcard character)
allow:
# allow all users and rooms at the offical FAU server
- "*:fau.de"
# and allow other FAU matrix servers
- "*.fau.de"
# some other people
- "@foobar:matrix.org"
# each of the following entries will be denied even if it matches an allowed entry
deny:
- "@drevil:fau.de"
# Configure logging
# see https://docs.python.org/3/library/logging.config.html
logging:
version: 1
disable_existing_loggers: true
formatters:
standard:
format: "%(asctime)s %(levelname)s: %(message)s [in %(funcName)s @ %(pathname)s:%(lineno)s]"
handlers:
console:
class: logging.StreamHandler
formatter: standard
level: DEBUG
stream: ext://sys.stdout
root:
handlers: [console]
level: NOTSET
propogate: yes