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