-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathdefault_config.py
40 lines (40 loc) · 2.12 KB
/
default_config.py
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
# pylint: disable=line-too-long
config = {
# ip or hostname to bind the socket to, this only applies when running the server in
# standalone mode.
"host": "127.0.0.1",
# port to bind to, this only applies when running the server in standalone mode.
"port": 8000,
"db_url": "sqlite://:memory:",
# url that rmf-server is being served on.
# When being a proxy, this must be the url that rmf-server is mounted on.
# E.g. https://example.com/rmf/api/v1
"public_url": "http://localhost:8000",
"cache_directory": "run/cache", # The directory where cached files should be stored.
"log_level": "WARNING", # https://docs.python.org/3.8/library/logging.html#levels
# a user that is automatically given admin privileges, note that this does not guarantee that the user exists in the identity provider.
"builtin_admin": "admin",
# path to a PEM encoded RSA public key which is used to verify JWT tokens, if the path is relative, it is based on the working dir.
"jwt_public_key": None,
# jwt secret, this is mutually exclusive with `jwt_public_key`.
"jwt_secret": "rmfisawesome",
# url to the oidc endpoint, used to authenticate rest requests, it should point to the well known endpoint, e.g.
# http://localhost:8080/auth/realms/rmf-web/.well-known/openid-configuration.
# NOTE: This is ONLY used for documentation purposes, the "jwt_public_key" will be the
# only key used to verify a token.
"oidc_url": None,
# Audience the access token is meant for. Can also be an array.
# Used to verify the "aud" claim.
"aud": "rmf_api_server",
# url or string that identifies the entity that issued the jwt token
# Used to verify the "iss" claim
"iss": "stub",
# list of arguments passed to the ros node, "--ros-args" is automatically prepended to the list.
# e.g.
# Run with sim time: ["-p", "use_sim_time:=true"]
"ros_args": [],
# Timezone at which the scheduler will operate in. This must be the same
# as the system timezone, as well as the client UI timezone. Cross-timezone
# scheduling is currently not supported.
"timezone": "UTC",
}