summarylogtreecommitdiffstats
path: root/lesma.toml
blob: 43f038b6da3789d266239fb7f844d2e2996573a5 (plain)
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
46
47
48
49
50
51
52
53
54
55
# You can have several different profiles and use LESMA_PROFILE environment
# variable to switch between them. By default release is used.
# See https://rocket.rs/v0.5-rc/guide/configuration/#profiles for more info.
#
# All configuration parameters can also be set with environment variables.
# For each parameter, the corresponding environment variable is indicated.
# Note that all parameters are optional, if not defined the default values
# are used.
#
# If you want to use this configuration file, copy it as /etc/lesma.toml or
# as lesma.toml together with the executable file.
[release]
# Listen address, default 127.0.0.1
# LESMA_ADDRESS
address = "127.0.0.1"
# Listen port, default 8000
# LESMA_PORT
#port = 8000
# When a new URL for a paste or file is generated use http or https, by
# default is set to false and uses http
# LESMA_HTTPS
https=true
# Log level, the valid values are `critical`, `normal`, `debug`, `off`, if
# not defined the default value is off
# LESMA_LOG_LEVEL
#log_level = "normal"
# The size limit sets both the limit for uploaded files and for the
# information posted, default 10MiB. If you simply indicate a number the
# size is in bytes but you can use the suffixes kB, MB, GB.. for powers of
# ten or KiB, MiB, GiB.. for powers of two
# LESMA_SIZE_LIMIT
#size_limit = "5GiB"
# Default download limit for every paste or file created where a different
# value is not specified , default 0 (unlimited), maximum accepted value 255
# LESMA_DEFAULT_LIMIT
#default_limit = 1
# Default expiration time (in hours) for each paste or file created when
# a different value is not specified, default 720 hours (30 days)
# LESMA_DEFAULT_EXPIRE
#default_expire = 24
# Maximum expiration time that an user can set (in hours) for each paste or
# file, default 720 hours (30 days)
# LESMA_MAX_EXPIRE
#max_expire = 168
# Location of lesmas storage, if not defined, a temporary directory will be
# used, usually /tmp
# LESMA_STORAGE
storage = "/var/lib/lesma"

# Other sample
#[debug]
#address = "127.0.0.1"
#port = 9000
#log_level = "debug"
#storage = "/tmp/lesma"