Kenny Van de Maele
120806ee55
refactor(uploads): centralize upload byte-limits in upload_limits.py ( #3364 ) ( #3518 )
...
Move every per-route upload byte-limit into src/upload_limits.py as a
validated, env-overridable constant via read_byte_limit_env:
- Add GALLERY_UPLOAD_MAX_BYTES, GALLERY_TRANSFORM_UPLOAD_MAX_BYTES,
MEMORY_IMPORT_MAX_BYTES, PERSONAL_UPLOAD_MAX_BYTES,
EMAIL_COMPOSE_UPLOAD_MAX_BYTES, STT_MAX_AUDIO_BYTES, ICS_MAX_BYTES.
- Routes import their constant instead of defining it locally: replaces 4
raw int(os.getenv(...)) and removes 3 hardcoded literals.
- The 3 previously-hardcoded limits (email compose, STT audio, calendar
ICS) are now env-overridable with the same ODYSSEUS_*_MAX_BYTES naming.
- Defaults unchanged, so behavior is unchanged unless an env var is set;
an invalid value now fails fast with a clear message instead of a bare
int() ValueError.
- Document all env vars in .env.example and the README.
Fixes #3364
2026-06-09 01:24:30 +02:00
..
2026-06-04 18:57:24 +02:00
2026-06-05 09:24:04 +01:00
2026-06-09 01:05:30 +02:00
2026-06-01 16:54:11 +09:00
2026-06-09 01:05:30 +02:00
2026-06-08 10:19:18 +02:00
2026-06-04 04:47:13 +01:00
2026-06-03 09:00:04 +09:00
2026-06-04 16:26:11 +01:00
2026-05-31 23:58:26 +09:00
2026-06-07 12:55:01 +02:00
2026-06-08 09:58:52 +02:00
2026-06-03 14:11:45 +09:00
2026-06-08 18:54:45 +02:00
2026-06-01 15:09:47 +09:00
2026-06-08 18:59:14 +02:00
2026-06-07 05:05:24 +01:00
2026-06-07 12:39:02 +02:00
2026-06-08 21:33:29 +02:00
2026-06-04 13:20:04 +01:00
2026-06-08 10:19:18 +02:00
2026-06-01 22:22:41 +09:00
2026-06-03 14:14:27 +09:00
2026-06-08 09:58:52 +02:00
2026-06-08 09:58:52 +02:00
2026-06-03 00:13:53 +09:00
2026-06-07 16:40:16 +02:00
2026-06-08 09:58:52 +02:00
2026-06-04 21:13:14 +02:00
2026-05-31 23:58:26 +09:00
2026-06-07 16:46:21 +02:00
2026-06-03 13:23:01 +09:00
2026-06-07 23:23:27 +02:00
2026-06-03 14:06:31 +09:00
2026-06-06 03:17:19 -06:00
2026-06-08 09:58:52 +02:00
2026-06-09 01:09:02 +02:00
2026-06-08 09:58:52 +02:00
2026-05-31 23:58:26 +09:00
2026-06-08 09:58:52 +02:00
2026-06-06 03:37:10 -06:00
2026-06-08 09:58:52 +02:00
2026-06-09 01:09:02 +02:00
2026-06-03 09:00:10 +09:00
2026-06-05 16:32:25 +02:00
2026-06-05 02:40:52 +02:00
2026-06-04 16:26:11 +01:00
2026-06-06 03:17:19 -06:00
2026-06-04 05:31:15 +01:00
2026-06-09 01:09:02 +02:00
2026-06-07 17:28:02 +02:00
2026-06-03 14:24:07 +09:00
2026-05-31 23:58:26 +09:00
2026-06-01 18:27:17 +09:00
2026-06-03 13:42:05 +09:00
2026-06-08 19:16:37 +02:00
2026-06-07 22:15:50 +01:00
2026-06-08 09:58:52 +02:00
2026-06-08 09:58:52 +02:00
2026-06-08 09:58:52 +02:00
2026-05-31 23:58:26 +09:00
2026-06-02 23:33:22 +09:00
2026-05-31 23:58:26 +09:00
2026-06-08 09:58:52 +02:00
2026-06-03 13:42:24 +09:00
2026-06-08 09:58:52 +02:00
2026-06-07 14:47:44 +02:00
2026-06-05 18:08:31 -06:00
2026-06-07 12:52:27 +02:00
2026-06-05 22:47:57 +02:00
2026-06-03 02:40:22 +09:00
2026-06-09 01:05:30 +02:00
2026-06-08 21:12:02 +02:00
2026-06-04 19:26:58 +02:00
2026-06-04 13:18:50 +01:00
2026-06-09 01:05:30 +02:00
2026-06-09 01:05:30 +02:00
2026-06-07 19:20:11 +02:00
2026-06-08 22:25:28 +02:00
2026-06-06 18:48:24 -06:00
2026-06-08 23:25:31 +02:00
2026-06-05 16:32:25 +02:00
2026-06-09 01:05:30 +02:00
2026-06-02 20:44:27 +09:00
2026-06-07 22:42:24 +02:00
2026-06-09 01:24:30 +02:00
2026-06-03 08:59:49 +09:00
2026-06-03 22:47:00 +09:00
2026-06-04 13:20:04 +01:00
2026-06-04 13:42:49 +01:00
2026-06-07 04:55:33 +01:00
2026-06-03 13:29:08 +09:00