From b9f0d539eb20584f1245cd278eae53a64e9d8358 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Sat, 24 Jan 2026 23:49:01 -0500 Subject: [PATCH] Add documentation for HTTP/LAN deployment configuration --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 59d94881..f1eaa6c0 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,25 @@ ADMIN_PASSWORD_RESET=true 3. Log in with the new password 4. **Important:** Remove `ADMIN_PASSWORD_RESET=true` from your environment after resetting +#### Remote/LAN Access (HTTP) + +When deploying OpenCode Manager on a local network without HTTPS (e.g., accessing via `http://192.168.1.*:5003`), configure these environment variables: + +```bash +# Trusted origins for authentication (comma-separated) +# Include all URLs you'll use to access the application +AUTH_TRUSTED_ORIGINS=http://localhost:5003,http://192.168.1.*:5003 + +# Disable secure cookies for HTTP (required for non-HTTPS) +AUTH_SECURE_COOKIES=false +``` + +**Defaults:** +- `AUTH_TRUSTED_ORIGINS`: `http://localhost:5003` +- `AUTH_SECURE_COOKIES`: `true` in production, `false` in development + +**Important:** For production deployments with HTTPS, leave `AUTH_SECURE_COOKIES` at its default (`true`) for security. Only set to `false` when using HTTP on a trusted local network. + #### OAuth Providers (Optional) To enable social login, configure OAuth credentials: