-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.toml
29 lines (25 loc) · 1.06 KB
/
config.sample.toml
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
# Sample configuration for n4dlapi reference implementation.
# ... or well you can just use this instead.
[main]
# Should the other API be publicly accessible by default?
public = true
# What's shared key to access other API if it's not specified as public API?
# Empty string means no shared key which means all API are publicly accessible.
# Strings are UTF-8, but URL-encoded when sent through header!
shared_key = ""
# Where to find the archive-root folder?
# Relative to current working directory, so it's recommended to specify absolute
# path.
# Environment variable `N4DLAPI_ARCHIVE_ROOT` takes priority than this config.
archive_root = "archive-root"
# It's also possible to change each API visibility status individually.
# Example: This will make the /api/publicinfo endpoint publicly accessible
# even if `public = false` above.
[api.publicinfo]
public = true
# Example: Allow access to /api/v1/update endpoint for everyone.
# [api.v1.update]
# public = true
# Example: Don't allow public access to /api/v1/getdb endpoint.
# [api.v1.getdb]
# public = false