Make secure cookie configurable
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -363,6 +363,12 @@ Secret key used for signing session cookies. Should be at least 32 bytes for sec
|
||||
|
||||
Session cookie lifetime in hours.
|
||||
|
||||
#### `auth.cookie.secure` (boolean)
|
||||
|
||||
**Default**: `true`
|
||||
|
||||
Controls whether the Secure flag is set on session cookies. When true, cookies are only sent over HTTPS connections.
|
||||
|
||||
#### `auth.password.pepper` (string)
|
||||
|
||||
**Default**: Auto-generated
|
||||
|
||||
@@ -68,6 +68,7 @@ This document provides a comprehensive reference for all environment variables u
|
||||
| `AUTH_COOKIE_DOMAIN` | Domain for the session cookie | `localhost` | No |
|
||||
| `AUTH_COOKIE_SECRET` | Secret key for signing session cookies (32+ bytes) | - | **Yes** |
|
||||
| `AUTH_COOKIE_DURATION` | Session cookie validity duration in hours | `24` | No |
|
||||
| `AUTH_COOKIE_SECURE` | Set Secure flag on cookies (use false for HTTP) | `true` | No |
|
||||
|
||||
### Password Security
|
||||
|
||||
|
||||
Reference in New Issue
Block a user