app refactored

This commit is contained in:
2026-03-18 02:39:33 +08:00
parent 6605224e30
commit db5aefedeb
4 changed files with 467 additions and 92 deletions
+7 -2
View File
@@ -1,10 +1,15 @@
{
"base_url": "http://localhost:8080/s",
"short_length": 6,
"api_key": "change-this-secret-key",
"host": "0.0.0.0",
"port": 8080,
"db_path": "data/urlshort.db",
"retention_days": 0
"retention_days": 0,
"min_short_length": 6,
"max_short_length": 32,
"max_url_length": 2048,
"max_retention_days": 3650,
"rate_limit_requests": 60,
"rate_limit_window": 60
}