A deny of 403 from waf is answered with refused.html, a deny of 429 with ratelimited.html, each as text/html with waf's other headers kept. Both pages are made once at start and held in memory. With SWW_RPROXY_CONTACT_EMAIL set, their "contact the site's operator" is a mailto link to it; the value is taken as given.
This commit is contained in:
1 parent
5dfa47c97b
commit
b157359910
8 files changed
+111
-3
No files matched your search
@@ -483,6 +483,8 @@ start, and an invalid value stops the start. Any can be given as a file, as a
|
||||
answer `rproxy` gives itself always has at least 10 seconds to be sent, and so
|
||||
do the status and headers of the app's answer. A time in milliseconds or
|
||||
`off`.
|
||||
- `SWW_RPROXY_CONTACT_EMAIL` (default unset): the email address the refusal
|
||||
pages link to.
|
||||
- `SWW_RPROXY_LISTEN_ADDR` (default `:8080`): where `rproxy` listens, such as
|
||||
`:9000`.
|
||||
- `SWW_RPROXY_UPSTREAM_URL` (default `http://127.0.0.1:8081`): the app. An
|
||||
|
||||
Reference in new issue
Block a user