mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Add AUTH_TRUSTED_ORIGINS config for remote access
This commit is contained in:
1 parent
03a9fc0fc5
commit
b34bf94290
2 files changed
+10
No files matched your search
@@ -53,6 +53,10 @@ DEBUG=false
|
||||
# Generate with: openssl rand -base64 32
|
||||
# AUTH_SECRET=your-secure-random-secret-here
|
||||
|
||||
# Trusted origins for authentication (comma-separated)
|
||||
# Add your server's external URL when accessing remotely
|
||||
# AUTH_TRUSTED_ORIGINS=http://localhost:5003,http://192.168.1.244:5003
|
||||
|
||||
# Admin Account (optional - for pre-configured single-user mode)
|
||||
# When set, admin user is created on first startup and self-registration is disabled
|
||||
# ADMIN_EMAIL=admin@example.com
|
||||
@@ -62,6 +66,10 @@ DEBUG=false
|
||||
# Remove after resetting password
|
||||
# ADMIN_PASSWORD_RESET=false
|
||||
|
||||
# Secure Cookies (set to false when running HTTP without a reverse proxy)
|
||||
# Defaults to true in production, false in development
|
||||
# AUTH_SECURE_COOKIES=true
|
||||
|
||||
# OAuth Providers (optional - enable by providing client ID and secret)
|
||||
# GITHUB_CLIENT_ID=
|
||||
# GITHUB_CLIENT_SECRET=
|
||||
|
||||
@@ -25,6 +25,7 @@ services:
|
||||
- MAX_UPLOAD_SIZE_MB=50
|
||||
- DEBUG=false
|
||||
- AUTH_SECRET=${AUTH_SECRET}
|
||||
- AUTH_TRUSTED_ORIGINS=${AUTH_TRUSTED_ORIGINS:-http://localhost:5003}
|
||||
- ADMIN_EMAIL=${ADMIN_EMAIL:-}
|
||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-}
|
||||
- ADMIN_PASSWORD_RESET=${ADMIN_PASSWORD_RESET:-false}
|
||||
@@ -34,6 +35,7 @@ services:
|
||||
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET:-}
|
||||
- DISCORD_CLIENT_ID=${DISCORD_CLIENT_ID:-}
|
||||
- DISCORD_CLIENT_SECRET=${DISCORD_CLIENT_SECRET:-}
|
||||
- AUTH_SECURE_COOKIES=${AUTH_SECURE_COOKIES:-false}
|
||||
- PASSKEY_RP_ID=${PASSKEY_RP_ID:-localhost}
|
||||
- PASSKEY_RP_NAME=${PASSKEY_RP_NAME:-OpenCode Manager}
|
||||
- PASSKEY_ORIGIN=${PASSKEY_ORIGIN:-http://localhost:5003}
|
||||
|
||||
Reference in new issue
Block a user