This commit is contained in:
Felix Klement committed 2026-10-06 11:33:00 +02:00
1 parent 2b7ac42d6b
commit 76cedf8400
7 files changed
+41 -60

No files matched your search

+14 -2
View File
@@ -51,8 +51,8 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 10s;
}
# The alpha sign-up, same handler: the form, and the confirmation from the link in its email.
location ~ ^/notify(/verify)?$ {
# The alpha sign-up, same handler: the form posts here.
location = /notify {
limit_except POST { deny all; }
client_max_body_size 64k;
proxy_pass http://127.0.0.1:3000;
@@ -63,6 +63,18 @@ server {
proxy_intercept_errors on;
error_page 502 503 504 = @notify_down;
}
# The link in the confirmation email; opening it confirms.
location = /notify/verify {
limit_except GET { deny all; }
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 30s;
proxy_intercept_errors on;
error_page 502 503 504 = @notify_down;
}
# Links sent before the confirmation moved off the button page.
location ~ ^(/de)?/notify/confirm$ { return 302 /notify/verify$is_args$args; }
location @notify_down {
if ($http_referer ~ "/de(/|$|#)") { return 303 /de/notify/error; }
return 303 /notify/error;