- /login form checks DASHBOARD_USER / DASHBOARD_PASSWORD from .env in constant time; failed attempts are serialized with a 1s delay - Sessions are random tokens kept in memory for 30 days, in an HttpOnly, SameSite=Lax cookie (Secure behind HTTPS); sign out ends them server-side - Signed-out requests redirect to /login and return to the page afterwards, with redirects limited to local paths - Dashboard pages send no-store and X-Frame-Options: DENY - Tests for the login flow and redirect safety; docs updated Co-Authored-By: Claude Opus 5.5 <[email protected]>
12 lines
365 B
Bash
12 lines
365 B
Bash
# Dashboard login. Both are required. Don't use quotes.
|
|
DASHBOARD_USER=admin
|
|
DASHBOARD_PASSWORD=change-me
|
|
|
|
# Docker (deploy.sh): host port to publish on, or ip:port. Default 8080.
|
|
# Use 127.0.0.1:8080 to only allow access through a local reverse proxy.
|
|
# PORT=8080
|
|
|
|
# Only for `go run` (the container sets these itself):
|
|
# ADDR=:8080
|
|
# DATA_FILE=data/pocketkv.json
|