ADD logging feature #13

This commit is contained in:
Caffeine Fueled 2025-10-16 00:09:07 +02:00
parent 2a7bab59f3
commit 4ff65e8561
Signed by: cf7
GPG key ID: CA295D643074C68C
2 changed files with 119 additions and 16 deletions

View file

@ -21,6 +21,7 @@
- up- and download in CLI possible
- rate-limits
- optional auth token for paste creation
- logging
**Ideas**:
- integrated retention/purge function
@ -168,6 +169,8 @@ podman run --replace -d --restart=unless-stopped \
| `RATE_LIMIT` | Rate limit for uploads (format: "requests/timeframe") | `50/hour` | No |
| `URL_PATH_LENGTH` | Length of generated URL paths (number of characters) | `6` | No |
| `UPLOAD_TOKENS` | Comma-separated list of Bearer tokens for upload authentication (if set, uploads require valid token) | _(disabled)_ | No |
| `LOGGING_ENABLED` | Enable structured JSON logging to file and stdout | `false` | No |
| `LOG_LEVEL` | Logging level (INFO, WARNING, ERROR) | `INFO` | No |
Create a secure token with: `openssl rand -base64 32`.