# Custom branding
NEXT_PUBLIC_APP_NAME=MyChat
NEXT_PUBLIC_APP_TAGLINE=Team Communication Made Easy
NEXT_PUBLIC_APP_LOGO=/custom-logo.svg
NEXT_PUBLIC_COMPANY_NAME=My Company
Theme Configuration
Color Mode
Variable
Type
Default
Description
NEXT_PUBLIC_THEME_MODE
string
dark
Default color mode: light, dark, system
Colors
Variable
Type
Default
Description
NEXT_PUBLIC_THEME_PRIMARY
hex
#00D4FF
Primary brand color
NEXT_PUBLIC_THEME_SECONDARY
hex
#6366F1
Secondary color
NEXT_PUBLIC_THEME_ACCENT
hex
#10B981
Accent color
NEXT_PUBLIC_THEME_BACKGROUND
hex
(commented)
Background override
NEXT_PUBLIC_THEME_SURFACE
hex
(commented)
Surface override
NEXT_PUBLIC_THEME_TEXT
hex
(commented)
Text color override
NEXT_PUBLIC_THEME_MUTED
hex
(commented)
Muted text override
NEXT_PUBLIC_THEME_BORDER
hex
(commented)
Border color override
UI Settings
Variable
Type
Default
Description
NEXT_PUBLIC_THEME_RADIUS
string
md
Border radius: none, sm, md, lg, xl, full
NEXT_PUBLIC_THEME_FONT
string
inter
Font family: inter, system, sf-pro, segoe, roboto, open-sans
# Increase limits for enterprise
NEXT_PUBLIC_MAX_MESSAGE_LENGTH=8000
NEXT_PUBLIC_MAX_FILE_SIZE=524288000 # 500MB
NEXT_PUBLIC_MAX_ATTACHMENTS_PER_MESSAGE=20
Authentication Providers
Basic Authentication
Variable
Type
Default
Description
NEXT_PUBLIC_AUTH_EMAIL_PASSWORD
boolean
true
Email/password auth
NEXT_PUBLIC_AUTH_MAGIC_LINKS
boolean
false
Passwordless email links
Social OAuth
Variable
Type
Default
Server Secrets
NEXT_PUBLIC_AUTH_GOOGLE
boolean
false
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET
NEXT_PUBLIC_AUTH_GITHUB
boolean
false
GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET
NEXT_PUBLIC_AUTH_DISCORD
boolean
false
DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET
NEXT_PUBLIC_AUTH_SLACK
boolean
false
SLACK_CLIENT_ID, SLACK_CLIENT_SECRET
NEXT_PUBLIC_AUTH_MICROSOFT
boolean
false
MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET
NEXT_PUBLIC_AUTH_APPLE
boolean
false
APPLE_CLIENT_ID, APPLE_CLIENT_SECRET
Enterprise Authentication
Variable
Type
Default
Server Secrets
NEXT_PUBLIC_AUTH_IDME
boolean
false
IDME_CLIENT_ID, IDME_CLIENT_SECRET
NEXT_PUBLIC_AUTH_SAML
boolean
false
SAML_ENTRY_POINT, SAML_ISSUER, SAML_CERT
# Enable Google and GitHub OAuth
NEXT_PUBLIC_AUTH_GOOGLE=true
NEXT_PUBLIC_AUTH_GITHUB=true
# Server-side secrets (not prefixed with NEXT_PUBLIC_)
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
Authentication Settings
Variable
Type
Default
Description
NEXT_PUBLIC_AUTH_ACCESS_MODE
string
allow-all
Access mode (see below)
NEXT_PUBLIC_AUTH_REQUIRE_EMAIL_VERIFICATION
boolean
false
Require email verification
NEXT_PUBLIC_AUTH_ALLOWED_DOMAINS
string
(empty)
Comma-separated domains
NEXT_PUBLIC_AUTH_REQUIRE_APPROVAL
boolean
false
Require admin approval
NEXT_PUBLIC_AUTH_DEFAULT_ROLE
string
member
Default role: member, guest
NEXT_PUBLIC_AUTH_DEFAULT_CHANNELS
string
general,announcements
Default channels to join
Access Modes
Mode
Description
allow-all
Open registration
verified-only
Email verification required
domain-restricted
Specific email domains only
admin-only
Manual approval required
# Corporate setup with domain restriction
NEXT_PUBLIC_AUTH_ACCESS_MODE=domain-restricted
NEXT_PUBLIC_AUTH_ALLOWED_DOMAINS=company.com,subsidiary.com
NEXT_PUBLIC_AUTH_REQUIRE_EMAIL_VERIFICATION=true
Notifications
Variable
Type
Default
Description
NEXT_PUBLIC_NOTIFICATIONS_DESKTOP
boolean
true
Desktop notifications
NEXT_PUBLIC_NOTIFICATIONS_SOUND
boolean
true
Sound notifications
NEXT_PUBLIC_NOTIFICATIONS_EMAIL
boolean
false
Email notifications
NEXT_PUBLIC_NOTIFICATIONS_PUSH
boolean
false
Mobile push notifications
SEO & Social
Variable
Type
Default
Description
NEXT_PUBLIC_META_TITLE
string
(app name)
Meta title
NEXT_PUBLIC_META_DESCRIPTION
string
Modern team communication platform
Meta description
NEXT_PUBLIC_OG_IMAGE
string
(empty)
Open Graph image
NEXT_PUBLIC_TWITTER_HANDLE
string
(empty)
Twitter handle
NEXT_PUBLIC_GA_ID
string
(empty)
Google Analytics ID
NEXT_PUBLIC_PLAUSIBLE_DOMAIN
string
(empty)
Plausible domain
# SEO configuration
NEXT_PUBLIC_META_DESCRIPTION=Team communication for modern teams
NEXT_PUBLIC_OG_IMAGE=/og-image.png
NEXT_PUBLIC_TWITTER_HANDLE=mychatapp
NEXT_PUBLIC_GA_ID=G-XXXXXXXXXX
Legal
Variable
Type
Default
Description
NEXT_PUBLIC_PRIVACY_URL
string
/privacy
Privacy policy URL
NEXT_PUBLIC_TERMS_URL
string
/terms
Terms of service URL
NEXT_PUBLIC_COOKIE_POLICY_URL
string
(empty)
Cookie policy URL
nself CLI Integration
Variable
Type
Default
Description
NSELF_CLI_VERSION
string
0.4.8
nself CLI version
NSELF_PLUGINS_ENABLED
string
(empty)
Enabled plugins
Server-Side Only
Important: These variables must NOT be prefixed with NEXT_PUBLIC_ as they contain secrets.