Skip to content

Commit 5719bb2

Browse files
committed
fix: increase healthcheck timeout and document security env vars
- Increase Railway healthcheckTimeout from 3s to 10s in case this is an issue. - Document TRUST_PROXY_HEADERS, ALLOWED_ORIGINS, and SECRET_KEY_BASE in the README Configuration section. These were introduced in the security fix (0d95edf) but never documented. - Add .vercel to .gitignore.
1 parent 32cfe98 commit 5719bb2

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ temp/
5959

6060
# AI tools
6161
.opencode/
62+
.vercel

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,18 @@ EXTERNAL_BASE_URL=http://localhost:8080
125125
# Admin access (comma-separated DIDs)
126126
ADMIN_DIDS=did:plc:your-did-here
127127

128+
# Security — required for session encryption (min 64 chars)
129+
SECRET_KEY_BASE=your-secret-key-at-least-64-characters-long-generate-with-openssl-rand
130+
131+
# Proxy auth — set to true when running behind a trusted reverse proxy
132+
# (e.g. Next.js frontend on Vercel) that sets the X-User-DID header.
133+
# WARNING: Never enable this when the server is directly exposed to the internet.
134+
TRUST_PROXY_HEADERS=false
135+
136+
# WebSocket origins — comma-separated allowed origins for subscriptions.
137+
# Empty = same-origin only. Set to "*" for development.
138+
# ALLOWED_ORIGINS=https://your-frontend.vercel.app
139+
128140
# Jetstream (real-time indexing)
129141
# Collections are auto-discovered from registered lexicons
130142
# Or specify manually:

railway.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ builder = "dockerfile"
33

44
[deploy]
55
healthcheckPath = "/health"
6-
healthcheckTimeout = 3
6+
healthcheckTimeout = 10
77
restartPolicyType = "on_failure"
88
restartPolicyMaxRetries = 3

0 commit comments

Comments
 (0)