47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
# Deploy (docker-compose) environment variables
|
|
|
|
# Postgres (used by postgres service)
|
|
POSTGRES_USER=omnichannel
|
|
POSTGRES_PASSWORD=change-me
|
|
POSTGRES_DB=omnichannel
|
|
|
|
# App database connection (used by backend)
|
|
DB_HOST=postgres
|
|
DB_PORT=5432
|
|
DB_USER=omnichannel
|
|
DB_PASSWORD=change-me
|
|
DB_NAME=omnichannel
|
|
|
|
# Ports (optional, if you want to reference in compose later)
|
|
FRONTEND_PORT=3000
|
|
BACKEND_PORT=3001
|
|
|
|
# Backend HTTP/JWT
|
|
PORT=3001
|
|
FRONTEND_URL=http://localhost:3000
|
|
JWT_SECRET=change-this-long-random-secret
|
|
JWT_EXPIRES_IN=8h
|
|
|
|
# Auth providers: ldap,microsoft or only one of them
|
|
AUTH_PROVIDERS=ldap,microsoft
|
|
|
|
# LDAP / Active Directory
|
|
LDAP_ENABLED=true
|
|
LDAP_URL=ldaps://kratos.sothistelecom.com:636
|
|
LDAP_DOMAIN=sothis.com.br
|
|
# Alternative when the bind user is not username@domain:
|
|
LDAP_USER_DN_TEMPLATE={{username}}@sothis.com.br
|
|
# Optional search to enrich the authenticated profile:
|
|
LDAP_SEARCH_BASE=DC=sothistelecom,DC=com
|
|
LDAP_SEARCH_FILTER=(&(objectClass=user)(sAMAccountName={{username}}))
|
|
# LDAP_BIND_DN=CN=ldap-reader,OU=Users,DC=example,DC=com
|
|
# LDAP_BIND_PASSWORD=change-me
|
|
|
|
# Microsoft Entra ID OAuth
|
|
MICROSOFT_ENABLED=false
|
|
MICROSOFT_TENANT_ID=common
|
|
MICROSOFT_CLIENT_ID=
|
|
MICROSOFT_CLIENT_SECRET=
|
|
MICROSOFT_REDIRECT_URI=http://localhost:3001/auth/oauth/microsoft/callback
|
|
MICROSOFT_SUCCESS_REDIRECT_URL=http://localhost:3000/login
|