2019-02-21 23:59:21 +03:00
|
|
|
# Username to make admin API requests
|
2019-02-22 10:58:38 +03:00
|
|
|
# Default: 'admin'
|
2019-02-21 23:59:21 +03:00
|
|
|
admin_username: 'admin'
|
|
|
|
|
|
|
|
# Plaintext password to make admin API requests
|
|
|
|
# Safe to remove if admin_hashed_password is set
|
2019-02-24 08:07:01 +03:00
|
|
|
# Default: unset
|
|
|
|
admin_password: 'password'
|
2019-02-21 23:59:21 +03:00
|
|
|
|
|
|
|
# Hashed password (bcrypt) to make admin API requests - Preferred over plaintext, use securepass.sh to generate
|
2019-02-24 08:07:01 +03:00
|
|
|
# Please note that authentication takes noticeably longer than using plaintext password
|
2019-02-22 10:58:38 +03:00
|
|
|
# Don't include the <username>: segment, just the hash
|
2019-02-24 09:36:10 +03:00
|
|
|
# Default: unset (required to start application)
|
2019-02-24 08:07:01 +03:00
|
|
|
#admin_hashed_password: '$2y$15$Dhll3IY42R.JNOYazarlG.8IndwMjxmHLpFsebJzcGTJd.gbsAwna'
|
2019-02-22 10:58:38 +03:00
|
|
|
|
2019-02-24 09:36:10 +03:00
|
|
|
# Secret key used for cookies (used for storage of messages)
|
|
|
|
# This should be a 12-16 character randomized string with letters, numbers, and symbols
|
|
|
|
# Default: unset (required to start application)
|
|
|
|
secret_key: 'S$JI8L*&xua%gBoL'
|
|
|
|
|
2019-02-22 10:58:38 +03:00
|
|
|
# Filename of the URL database
|
|
|
|
# Default: 'urls'
|
|
|
|
database_name: 'urls'
|
|
|
|
|
|
|
|
# Length of random short URLs by default
|
|
|
|
# Default: 4
|
|
|
|
random_length: 4
|
|
|
|
|
|
|
|
# Allowed URL characters
|
|
|
|
# Default: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_
|
|
|
|
allowed_chars: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'
|
|
|
|
|
|
|
|
# Amount of time in seconds to spend generating random short URLs until timeout
|
|
|
|
# Default: 5
|
2019-02-23 09:45:47 +03:00
|
|
|
random_gen_timeout: 5
|
|
|
|
|
|
|
|
# Name shown on tab while on site and on page header
|
|
|
|
# Default: 'liteshort'
|
2019-02-24 08:07:01 +03:00
|
|
|
site_name: 'liteshort'
|
|
|
|
|
|
|
|
# URL shown when finished generating shortlinks. Include the / at the end.
|
|
|
|
# If not set, it is automatically taken from the URL the shorten request is sent to.
|
|
|
|
# Default: unset
|
|
|
|
site_url:
|