-
Notifications
You must be signed in to change notification settings - Fork 1
/
example-config.toml
43 lines (37 loc) · 1.06 KB
/
example-config.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Basic settings
database_directory = './db'
files_directory = './blobs'
server_url = 'https://cdn.oxtr.dev' # Set to entire URL without trailing /. Used to set the URL in a blob descriptor.
host = 'localhost:3030' # hostname:port to bind on
# Get blob settings
[get]
require_auth = false # Require authorization to fetch blob
# Upload blob settings
[upload]
enabled = true # Enable/disable uploads
max_size = 50 # In MB
# Upload blob pubkey filter
[upload.public_key_filter]
enabled = true
mode = "Whitelist" # Specify if pubkey list is a whitelist or blacklist
public_keys = [
"b2d670de53b27691c0c3400225b65c35a26d06093bcc41f48ffc71e0907f9d4a",
]
# Upload blob mimetype filter
[upload.mimetype_filter]
enabled = true
mode = "Whitelist" # Specify if mimetype list is a whitelist or blacklist
mime_types = [
"image/png",
"image/jpg",
"image/jpeg",
"image/webp",
"image/gif",
"video/mp4"
]
# List blobs settings
[list]
require_auth = false # Require authorization for listing blobs
# Mirror blobs settings
[mirror]
enable = false # Enable /mirror endpoint