Compare commits
1 Commits
7923146db9
...
4358921374
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4358921374 |
@@ -74,7 +74,7 @@ you can place variables in a `.env` file in the project root (loaded
|
||||
automatically via `godotenv/autoload`).
|
||||
|
||||
The environment is selected by setting `WEBHOOKER_ENVIRONMENT` to `dev`
|
||||
or `prod` (default: `dev`). The setting controls several behaviors:
|
||||
or `prod` (default: `dev`). The setting controls exactly one behavior:
|
||||
|
||||
| Behavior | `dev` | `prod` |
|
||||
| -------- | ----------------------- | ---------------- |
|
||||
@@ -104,7 +104,11 @@ direct TLS, or over plain HTTP during development — a plain-HTTP local
|
||||
run gets non-`Secure` cookies and remains usable, and a proxied
|
||||
deployment gets `Secure` ones without the operator setting anything.
|
||||
When running behind a reverse proxy, ensure it sets the
|
||||
`X-Forwarded-Proto: https` header.
|
||||
`X-Forwarded-Proto: https` header. Unlike `X-Forwarded-For`, this
|
||||
header is read from any peer and is **not** gated by
|
||||
`TRUSTED_PROXIES`; a correctly configured proxy overwrites whatever a
|
||||
client sent. On a listener exposed directly to clients, any client can
|
||||
assert it, so do not run one without a proxy in front.
|
||||
|
||||
All other differences (log format, security headers, etc.) are
|
||||
independent of the environment setting — log format is determined by
|
||||
|
||||
Reference in New Issue
Block a user