-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.default.toml
35 lines (29 loc) · 1.11 KB
/
config.default.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
# Default fallback config file for smolboard; DO NOT EDIT.
# Either create a new config.toml and override these options or use the
# -c/--config flag.
siteName = "smolboard demo"
owner = "diamondburned"
databasePath = "/tmp/smolboard.db"
maxTokenUses = 100 # max use for the invitation token
tokenLifespan = "7d" # lifespan for the session token
socketPath = "/tmp/smolboard.sock"
socketPerm = "0777" # octet
maxBodySize = "1GB" # absolute max size including file name and form
fileDirectory = "/tmp/smolboard-store/"
maxFileSize = "500MB" # absolute max file size
allowedTypes = [ # will use the second part for file extension
# https://mimesniff.spec.whatwg.org/#matching-an-image-type-pattern
"image/jpeg", "image/png", "image/gif", "image/webp",
# https://mimesniff.spec.whatwg.org/#matching-an-audio-or-video-type-pattern
"video/avi", "video/mp4", "video/webm", "video/x-matroska"
]
# Size is calculated as such:
#
# min(maxBodySize, min(maxFileSize, min(MaxSize.Any)))
#
[MaxSize]
"image" = "10MB"
"image/png" = "20MB"
"image/gif" = "50MB"
"video" = "250MB"
"video/mp4" = "500MB"