-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml.example
45 lines (34 loc) · 1.07 KB
/
config.toml.example
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
44
45
# The base URL of the service.
base_url = "http://localhost:3000"
# The port to run the service on.
port = 3000
[database]
# The database URL (supported are sqlite and postgres).
url = "sqlite://database.db"
[storage]
# The storage method to use ("s3" or "file").
kind = "file"
[storage.file]
# The directory to store pastes in.
#
# For security reasons, the directory will not be created by default.
dir = "pastes/"
[storage.s3]
# The S3 bucket to upload files to.
bucket = ""
# The S3 region to connect to.
# region = ""
# The S3 endpoint to connect to, if not AWS.
# endpoint = ""
[limits]
# The max upload size in bytes.
max_upload_size = 5_000_000
# Paste expiration time in seconds.
expiration_time = 259200
[word_lists]
# The path to the adjectives file, which contains a list of adjectives separated
# by newlines. Terminating newlines are ignored.
adjectives_file = "adjectives.txt"
# The path to the nouns file, which contains a list of nouns separated by
# newlines. Terminating newlines are ignored.
nouns_file = "animals.txt"