2019-02-24 11:31:30 +03:00
|
|
|
# String: 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'
|
|
|
|
|
2019-02-24 11:31:30 +03:00
|
|
|
# String: Plaintext password to make admin API requests
|
2019-02-21 23:59:21 +03:00
|
|
|
# Safe to remove if admin_hashed_password is set
|
2019-02-24 08:07:01 +03:00
|
|
|
# Default: unset
|
2019-02-24 10:30:57 +03:00
|
|
|
#admin_password:
|
2019-02-21 23:59:21 +03:00
|
|
|
|
2019-02-24 11:31:30 +03:00
|
|
|
# String: 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 11:31:30 +03:00
|
|
|
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
|
2019-02-22 10:58:38 +03:00
|
|
|
|
2019-02-24 10:30:57 +03:00
|
|
|
# String: Secret key used for cookies (used for storage of messages)
|
2019-02-24 09:36:10 +03:00
|
|
|
# This should be a 12-16 character randomized string with letters, numbers, and symbols
|
|
|
|
# Default: unset (required to start application)
|
2019-02-24 11:31:30 +03:00
|
|
|
secret_key:
|
2019-02-24 09:36:10 +03:00
|
|
|
|
2019-02-24 10:30:57 +03:00
|
|
|
# String: Filename of the URL database without extension
|
2019-02-22 10:58:38 +03:00
|
|
|
# Default: 'urls'
|
|
|
|
database_name: 'urls'
|
|
|
|
|
2019-02-24 10:30:57 +03:00
|
|
|
# Integer: Length of random short URLs by default
|
2019-02-22 10:58:38 +03:00
|
|
|
# Default: 4
|
|
|
|
random_length: 4
|
|
|
|
|
2019-02-24 10:30:57 +03:00
|
|
|
# String: Allowed URL characters
|
2019-02-22 10:58:38 +03:00
|
|
|
# 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
|
|
|
|
|
2019-02-24 10:30:57 +03:00
|
|
|
# String: Name shown on tab while on site and on page header
|
2019-02-23 09:45:47 +03:00
|
|
|
# Default: 'liteshort'
|
2019-02-24 08:07:01 +03:00
|
|
|
site_name: 'liteshort'
|
|
|
|
|
2019-02-25 06:29:38 +03:00
|
|
|
# String: Domain where the shortlinks will be served from. Useful if using the web interface on a subdomain.
|
2019-02-24 08:07:01 +03:00
|
|
|
# If not set, it is automatically taken from the URL the shorten request is sent to.
|
2019-02-25 05:14:51 +03:00
|
|
|
# If you don't know, leave unset
|
2019-02-24 08:07:01 +03:00
|
|
|
# Default: unset
|
2019-02-25 08:07:55 +03:00
|
|
|
site_domain:
|
2019-02-24 10:30:57 +03:00
|
|
|
|
2019-02-25 06:29:38 +03:00
|
|
|
# String: Subdomain to host the web interface on.
|
|
|
|
# Useful if you want the shorturls on the short domain but the web interface on a subdomain.
|
2019-02-25 05:14:51 +03:00
|
|
|
# If you don't know, leave unset
|
|
|
|
# Default: unset
|
2019-02-25 08:07:55 +03:00
|
|
|
subdomain:
|
2019-02-25 05:14:51 +03:00
|
|
|
|
2019-04-21 02:28:01 +03:00
|
|
|
# String: URL which takes you to the most recent short URL's destination
|
|
|
|
# Short URLs cannot be created with this string if set
|
|
|
|
# Default: l
|
|
|
|
latest: 'l'
|
|
|
|
|
2019-02-24 10:30:57 +03:00
|
|
|
# Boolean: Show link to project repository on GitHub at bottom right corner of page
|
|
|
|
# Default: true
|
2019-02-24 11:31:30 +03:00
|
|
|
show_github_link: true
|
2019-04-21 02:28:01 +03:00
|
|
|
|