This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

2configs.nixcon-quiz: drop per-IP limits, the venue shares one address

+3 -13
+3 -13
2configs/nixcon-quiz.nix
··· 25 25 questionSeconds = 30; 26 26 }; 27 27 28 - # One address may hold a few tabs (players and a spectator screen) and 29 - # reload at a human pace; each tab keeps one event stream open. 30 - services.nginx.appendHttpConfig = '' 31 - limit_conn_zone $binary_remote_addr zone=nixcon_quiz_conns:10m; 32 - limit_req_zone $binary_remote_addr zone=nixcon_quiz_joins:10m rate=5r/s; 33 - ''; 34 - 35 - services.nginx.virtualHosts.${domain}.locations."/api/events".extraConfig = '' 36 - limit_conn nixcon_quiz_conns 16; 37 - limit_req zone=nixcon_quiz_joins burst=30 nodelay; 38 - limit_conn_status 429; 39 - limit_req_status 429; 40 - ''; 28 + # No per-address limits on the event streams: the venue Wi-Fi puts every 29 + # phone at NixCon behind one public address, so a per-IP cap cuts off 30 + # everyone past the first few players. The quiz caps players itself. 41 31 42 32 # The quiz's first home; old links and QR codes land on the new name. 43 33 services.nginx.virtualHosts."quiz.lassul.us" = {