Add POST form to shorten link, shortened links to database, configuration file
This commit is contained in:
parent
657ee72ecb
commit
513050e131
5 changed files with 150 additions and 12 deletions
22
config.yml
22
config.yml
|
@ -1,9 +1,29 @@
|
|||
# Username to make admin API requests
|
||||
# Default: 'admin'
|
||||
admin_username: 'admin'
|
||||
|
||||
# Plaintext password to make admin API requests
|
||||
# Safe to remove if admin_hashed_password is set
|
||||
# Default: commented out, 'password'
|
||||
#admin_password: 'password'
|
||||
|
||||
# Hashed password (bcrypt) to make admin API requests - Preferred over plaintext, use securepass.sh to generate
|
||||
admin_hashed_password: 'test'
|
||||
# Don't include the <username>: segment, just the hash
|
||||
# Default: '$2y$15$Dhll3IY42R.JNOYazarlG.8IndwMjxmHLpFsebJzcGTJd.gbsAwna' (hash for 'password')
|
||||
admin_hashed_password: '$2y$15$Dhll3IY42R.JNOYazarlG.8IndwMjxmHLpFsebJzcGTJd.gbsAwna'
|
||||
|
||||
# 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
|
||||
random_gen_timeout: 5
|
Reference in a new issue