config.yml 1.79 KB
Newer Older
132ikl's avatar
132ikl committed
1
# String: Username to make admin API requests
2
# Default: 'admin'
3
4
admin_username: 'admin'

132ikl's avatar
132ikl committed
5
# String: Plaintext password to make admin API requests
6
# Safe to remove if admin_hashed_password is set
132ikl's avatar
132ikl committed
7
# Default: unset
132ikl's avatar
132ikl committed
8
#admin_password:
9

132ikl's avatar
132ikl committed
10
# String: Hashed password (bcrypt) to make admin API requests - Preferred over plaintext, use securepass.sh to generate
132ikl's avatar
132ikl committed
11
# Please note that authentication takes noticeably longer than using plaintext password
12
# Don't include the <username>: segment, just the hash
132ikl's avatar
132ikl committed
13
# Default: unset (required to start application)
132ikl's avatar
132ikl committed
14
15
16
17
18
admin_hashed_password:

# Boolean: Disables API. If set to true, admin_password/admin_hashed_password do not need to be set.
# Default: false
disable_api: false
19

132ikl's avatar
132ikl committed
20
# String: Secret key used for cookies (used for storage of messages)
132ikl's avatar
132ikl committed
21
22
# This should be a 12-16 character randomized string with letters, numbers, and symbols
# Default: unset (required to start application)
132ikl's avatar
132ikl committed
23
secret_key:
132ikl's avatar
132ikl committed
24

132ikl's avatar
132ikl committed
25
# String: Filename of the URL database without extension
26
27
28
# Default: 'urls'
database_name: 'urls'

132ikl's avatar
132ikl committed
29
# Integer: Length of random short URLs by default
30
31
32
# Default: 4
random_length: 4

132ikl's avatar
132ikl committed
33
# String: Allowed URL characters
34
35
36
37
38
# Default: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_
allowed_chars: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'

# Amount of time in seconds to spend generating random short URLs until timeout
# Default: 5
39
40
random_gen_timeout: 5

132ikl's avatar
132ikl committed
41
# String: Name shown on tab while on site and on page header
42
# Default: 'liteshort'
132ikl's avatar
132ikl committed
43
44
site_name: 'liteshort'

132ikl's avatar
132ikl committed
45
# String: URL shown when finished generating shortlinks. Include the / at the end.
132ikl's avatar
132ikl committed
46
47
# If not set, it is automatically taken from the URL the shorten request is sent to.
# Default: unset
132ikl's avatar
132ikl committed
48
49
50
51
site_url:

# Boolean: Show link to project repository on GitHub at bottom right corner of page
# Default: true
132ikl's avatar
132ikl committed
52
show_github_link: true