Skip to content

Commit 4b2193f

Browse files
committed
feat: add configuration for keeping deleted pastes and update trusted hosts format
- Introduce `APP_KEEP_DELETED_PASTES_TIME_HOURS` to control how long deleted pastes are retained - Rename `TRUSTED_HOSTS` to `APP_TRUSTED_HOSTS` for consistency - Update `.env.example` with new configuration option and corrected variable name
1 parent c4a61e2 commit 4b2193f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ APP_CORS_DOMAINS='["http://localhost:3000"]'
1818
APP_CACHE_TTL=300
1919
APP_CACHE_SIZE_LIMIT=1000
2020
APP_MIN_STORAGE_MB=1024
21-
TRUSTED_HOSTS='["127.0.0.1", 'devbin_frontend']'
21+
APP_TRUSTED_HOSTS='["127.0.0.1", 'devbin_frontend']'
22+
APP_KEEP_DELETED_PASTES_TIME_HOURS=336 # 2 Weeks
2223

2324
# Debug / Development settings
2425
APP_SQLALCHEMY_ECHO=false

0 commit comments

Comments
 (0)