shortenit/config/config.yaml
Elia el Lazkani 0238e4b67b enh(#10): Frontend is now configurable from config.json
The host URL is now read from configuration.
2024-12-25 15:33:49 +01:00

20 lines
485 B
YAML

Server:
host: 127.0.0.1
port: 8000
scheme: http
cors: False
static_folder: frontend/build
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