Skip to content

Commit 5a2f15a

Browse files
committed
Sample config file.
1 parent bb12a47 commit 5a2f15a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

config.yml.sample

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Uvicorn configuration
2+
uvicorn:
3+
reload: true
4+
port: 8001
5+
host: 0.0.0.0
6+
ssl_certfile: /etc/linuxmuster/api/lmnapi.pem
7+
ssl_keyfile: /etc/linuxmuster/api/lmnapi.pem
8+
log_level: info
9+
log_config: /etc/linuxmuster/api/log_conf.yaml
10+
# Secret key used to encode and decode the JWT
11+
secret: LONG_AND_SECURE_BASE64_ENCODED_STRING
12+
# Enable host key auth or not (default to false)
13+
host_key_auth: false
14+
host_keys:
15+
my_server: # Name of the key
16+
ips: [127.0.0.1, 192.168.1.1] # List of ips allowed
17+
user: global-admin # cn of a valid ldap user to isolate the permissions
18+
secret: LONG_AND_SECURE_BASE64_ENCODED_STRING
19+
my_server2: # Name of the key
20+
ips: [] # All ip allowed
21+
user: lmn-teacher # cn of a valid ldap user to isolate the permissions
22+
secret: LONG_AND_SECURE_BASE64_ENCODED_STRING
23+
# CORS configuration
24+
cors:
25+
allow_origins:
26+
- http://example.net
27+
- https://localhost:8001
28+
allow_credentials: true
29+
allow_methods:
30+
- GET
31+
- POST
32+
allow_headers: ['*']
33+

0 commit comments

Comments
 (0)