Manual Variables
Env File .envโ
# Required
BASE_URL=http://localhost:1337
DATABASE_URL=postgresql://postgres@localhost/4gaBoards
SECRET_KEY=notsecretkey
# Add optional 4ga Boards instance variables here
# Do not edit this
TZ=UTC
4ga Boards - Required Instance Variablesโ
BASE_URL- domain or ip address used to access 4ga BoardsDATABASE_URL- database url in the following format:postgresql://<username>:<password>@<host>/<database_name>SECRET_KEY- session secret key
4ga Boards - Optional Instance Variablesโ
Default settings (applied only on first run)โ
Default admin user is always created, but you can override the default values:โ
DEFAULT_ADMIN_USERNAME="demo"- default admin username, defaults todemoDEFAULT_ADMIN_EMAIL="demo@demo.demo"- default admin email, defaults todemo@demo.demoDEFAULT_ADMIN_NAME="Demo Demo"- default admin name, defaults toDemo DemoDEFAULT_ADMIN_PASSWORD="demo"- default admin password, defaults todemo
Other settings:โ
DEFAULT_PROJECT_CREATION_ALL=true- only admins can create projects if true, defaults totrueDEFAULT_REGISTRATION_ENABLED=true- registration enabled if true, defaults totrueDEFAULT_LOCAL_REGISTRATION_ENABLED=true- local registration emabled if true, defaults totrueDEFAULT_SSO_REGISTRATION_ENABLED=true- sso registration enabled if true, defaults totrueDEFAULT_ALLOWED_REGISTER_DOMAINS="4gaboards.com;example.com"- a semicolon separated list of allowed domain for registration, defaults to- meaning all domains are allowedDEFAULT_SYNC_SSO_DATA_ON_AUTH=false- sync all user data (except admin status) after each sso login, defaults tofalseDEFAULT_SYNC_SSO_ADMIN_ON_AUTH=false- sync user admin status after each sso login, defaults tofalse
Google OAuth2.0โ
GOOGLE_CLIENT_ID=googleClientId- client id from the project on: https://console.cloud.google.com/GOOGLE_CLIENT_SECRET=googleClientSecret- client secret from the project: generated in app settings
GitHub OAuth2.0โ
GITHUB_CLIENT_ID=githubClientId- client id from the app after creating on: https://github.com/settings/applications/new or https://github.com/settings/apps/newGITHUB_CLIENT_SECRET=githubClientSecret- client secret from the app: generated in app settings
Microsoft OIDCโ
MICROSOFT_CLIENT_ID=microsoftClientId- client id from the app after creating on: https://portal.azure.com/MICROSOFT_CLIENT_SECRET=microsoftClientSecret- client secret from the app: generated in app settings
Generic OIDCโ
OIDC_CLIENT_ID=oidcClientId- client id from the app after creating in custom OIDC providerOIDC_CLIENT_SECRET=oidcClientSecret- client secret from the app: generated in app settingsOIDC_ISSUER_URL=https://oidcIssuer.com- OIDC issuer URL, if OIDC issuer supports discovery protocol (.well-known/openid-configuration) other URLs are configured automatically. However some URLs can be overridden using settigs below:OIDC_AUTH_URL=https://oidcIssuer.com/auth- optional auth URLOIDC_TOKEN_URL=https://oidcIssuer.com/token- optional token URLOIDC_USERINFO_URL=https://oidcIssuer.com/userinfo- optional userinfo URLOIDC_STATE_SECRET=stateSecret- OIDC state secret, generate usingopenssl rand -hex 64OIDC_ENABLED_METHODS=Google,Microsoft,GitHub- a comma-separated list of methods supported by OIDC provider (this is used to show custom buttons for each method - supported methods: Google, Microsoft, GitHub - open GitHub issue if more methods are needed)OIDC_DISABLE_HINT_*=false- disable one of the methods supported by OIDC provider e.g.OIDC_DISABLE_HINT_GITHUB=false, defaults tofalseOIDC_SKIP_ACCOUNT_SELECTION=false- don't sendselect_accountorloginprompt to OIDC provider, defaults tofalseOIDC_SKIP_ACCOUNT_SELECTION_HINT_*=false- don't sendselect_accountorloginprompt to OIDC provider (only for some method) e.g.OIDC_SKIP_ACCOUNT_SELECTION_HINT_GITHUB=false, defaults tofalse
Other settingsโ
CLIENT_URL=http://localhost:3000- main client URL - usually not needed, if running production defaults toBASE_URL, if development defaults tohttp://localhost:3000(skip this unless you really need it)DEMO_MODE=false- demo mode enabled if true, defaults tofalseLOG_LEVEL=warn- log levels from highest to lowest - error, warn, info, http, verbose, debug, silly, defaults towarnTRUST_PROXY=0- trust proxy used only if 4ga Boards are behind a proxy/load balancer, defaults to0TOKEN_EXPIRES_IN=365- token expiration in days, defaults to365
Additional Links:
4ga Boards .env File
4ga Boards Professional Hosting