shortenit/config/config.yaml
2024-12-27 09:58:15 +01:00

22 lines
515 B
YAML

Server:
hostname: localhost
bind_ip: 0.0.0.0
port: 8000
scheme: http
cors: False
enable_ui: True
static_folder: ui/
Database:
username: foo
password: bar
#url: "sqlite+pysqlite:///:memory:"
url: "sqlite+pysqlite:///shortenit.db"
Shortener:
# *CAUTION*: Enabling this check if the ID already exists before returning it.
# Even though this guarantees that the ID doesn't exist, this might inflict
# some performance hit.
id_length: 32
check_duplicate_id: True
id_upper_case: False