Merge pull request 'Store answers atomically and limit word cloud input' (#31) from fix/atomic-votes into main
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Successful in 4s

Reviewed-on: #31
This commit was merged in pull request #31.
This commit is contained in:
gnilebein committed 2026-11-08 22:35:42 +01:00
commit 6912d045cf
11 files changed
+224 -50

No files matched your search

+2
View File
@@ -34,6 +34,8 @@ SHOW_ADMIN_LINK_AFTER_CREATE=false
# Max. polls / recovery mails per IP and hour (0 = unlimited)
THROTTLE_CREATE_PER_HOUR=10
THROTTLE_RECOVER_PER_HOUR=5
# Max. answers per IP and minute (0 = unlimited). Keep it high: a whole audience may share one Wi-Fi/IP.
THROTTLE_VOTES_PER_MINUTE=600
# How often presenter and participant pages poll for updates (ms)
POLL_INTERVAL_MS=2000
# Embedded slides (/e/{key}/{slide}, e.g. Canva): heartbeat interval and timeout until pause (s)
+3 -1
View File
@@ -21,7 +21,7 @@ return [
* confirmation page (useful for local development without mail server).
* Defaults to the debug flag. NEVER enable this in production, otherwise
* the e-mail confirmation is pointless.
* - throttle: max. number of polls / recovery mails per IP and hour.
* - throttle: max. number of polls / recovery mails per IP and hour, answers per IP and minute.
* - pollIntervalMs: how often presenter / participant pages poll for state.
*/
'Plenario' => [
@@ -39,6 +39,8 @@ return [
'throttle' => [
'createPerHour' => (int)env('THROTTLE_CREATE_PER_HOUR', 10),
'recoverPerHour' => (int)env('THROTTLE_RECOVER_PER_HOUR', 5),
// Answers (incl. word cloud entries and upvotes) per IP and minute; a whole audience may share one IP.
'votesPerMinute' => (int)env('THROTTLE_VOTES_PER_MINUTE', 600),
],
'pollIntervalMs' => (int)env('POLL_INTERVAL_MS', 2000),
// Slides embedded in other presentation software (/e/{key}/{slide}, e.g. Canva).