Kantree configuration reference

In this article

This page lists the built-in configuration options of Kantree, by category. The options of the optional extensions are in extensions.md.

Set an option

Set an option in config.yml, or in the file of the KANTREE_CONFIG environment variable. Names are case-insensitive in YAML files: server_name sets SERVER_NAME.

An environment variable with the KANTREE_ prefix also sets an option: KANTREE_SERVER_NAME. Its value is read as JSON when possible: KANTREE_RQ_ASYNC=false gives the boolean false.

Sources, from lowest to highest priority:

  1. the defaults of this page
  2. config-docker.yml (written by the Docker image)
  3. config.yml, or the file of KANTREE_CONFIG
  4. .env, then .env.<ENV> (lines with the KANTREE_ prefix)
  5. environment variables with the KANTREE_ prefix

Read the tables

  • Type: string, integer, float, boolean, list, dict, or several types separated by “ ”.
  • Default: the value when the option is not set (null: no value).
  • Required: an instance must set the option.
  • Deprecated: the option that replaces it.
  • Values: the accepted values, when the list is closed.

Options of type localized string accept a string, or a dict of strings by locale:

terms_url:
  en: https://example.com/terms
  fr: https://example.com/fr/terms

Categories

General

Option Type Default Description
ENV string production Environment of the instance. Set it with the KANTREE_ENV environment variable. Values: production, development, testing.
TITLE string Kantree Name of the application, shown in the interface and in emails.
SECRET_KEY string changeme Required. Key that signs the sessions and the tokens. Use a long random value and keep it secret.
CREDENTIAL_ENCRYPTION_KEYS list [] Root keys that encrypt the credentials stored in the database. The first key encrypts new values; the next keys only decrypt old values. When empty, keys are derived from SECRET_KEY, so a change of SECRET_KEY makes the stored credentials unreadable. Generate a key with kantree gen-credential-encryption-key.
DEFAULT_LOCALE string en Default language of the users. Values: en, fr.
AUTO_DETECT_USER_LOCALE boolean true Detect the language of a new user from their browser.
DEFAULT_FEATURE_FLAGS list [teams, org_hub, sso, portfolios, gantt, documents, discussions, whiteboards, ai, dependencies, quadrant, emailing] Features available to the organizations. The server refuses the features whose flag is not in the list. Add flags to one organization with kantree set-feature-flag <org_slug> <flags>.
ORG_PROJECT_SLOTS list [CRM, Product Roadmap, Contacts, Tasks] Workspace suggestions shown in an empty organization.

Server and network

Option Type Default Description
SERVER_NAME string localhost:5000 Required. Public host name (and port) of Kantree. Links and cookies use it.
SERVER_SECURED boolean false Kantree is served over HTTPS. Turns on secure cookies and HTTPS links.
SERVER_PORT integer 5000 Port of the web application server.
DATABASE_URI string null Required. PostgreSQL connection URI, for example postgresql://user:password@host/kantree.
REDIS_URI string redis://localhost:6379/0 Redis connection URI.
SESSION_COOKIE_SAMESITE_OVERRIDE string Lax SameSite attribute of the session cookie. Values: Lax, Strict, None.
SERVICE_WORKER_NAME string null Name of the service worker. Change it to force browsers to reload their cache. Defaults to the version of Kantree.
SERVICE_WORKER_URL string /sw.js URL of the service worker.
ASSETS_CDN_HOST string null Base URL of a CDN that serves the static assets, for example https://cdn.example.com.
ASSETS_CDN_ENABLED boolean true Use ASSETS_CDN_HOST for the static assets.
ASSETS_CDN_DOMAIN string null Deprecated: use ASSETS_CDN_HOST. Domain of the CDN.
ASSETS_CDN_SCHEME string https Deprecated: use ASSETS_CDN_HOST. Scheme of the CDN.

Push server (realtime updates)

Option Type Default Description
PUSH_SERVER_URL string null URL of the push server for browsers. Defaults to the host of SERVER_NAME on PUSH_SERVER_PORT. Set it when a reverse proxy serves Kantree on a single domain.
PUSH_SERVER_PORT integer 4000 Port of the push server.
PUSH_SECRET string null Secret shared by the web application and the push server. Defaults to SECRET_KEY.
PUSH_CHANNEL string socketio Redis pub/sub channel of the push server. Use a different channel for each instance that shares a Redis server.
PUSH_REDIS_URI string null Redis URI of the push server. Defaults to REDIS_URI.

Collaboration server (documents)

Option Type Default Description
COLLAB_SERVER_URL string null URL of the collaboration server for browsers. Defaults to /hocuspocus on the address of Kantree, which the reverse proxy forwards to COLLAB_SERVER_PORT.
COLLAB_SERVER_PORT integer 4500 Port of the collaboration server.
COLLAB_BACKEND_URL string http://localhost:5000 URL of the Kantree web application, for the collaboration server.
COLLAB_SERVER_INTERNAL_URL string null URL of the collaboration server API, for the web, worker and MCP processes. Defaults to http://localhost:<COLLAB_SERVER_PORT>.
COLLAB_SERVER_TIMEOUT integer 30 Timeout, in seconds, of the requests to the collaboration server API.
COLLAB_SECRET string null Secret shared with the collaboration server. Derived from SECRET_KEY when not set. Set it only when kantree run does not start the collaboration server.

MCP server

Option Type Default Description
MCP_ENABLED boolean false Start the Model Context Protocol server with kantree run.
MCP_HOST string 127.0.0.1 Address on which the MCP server listens.
MCP_PORT integer 4600 Port of the MCP server.
MCP_PUBLIC_URL string null Public URL of the MCP endpoint. Defaults to <MCP_ISSUER_URL>/mcp.
MCP_ISSUER_URL string null URL of the OAuth issuer. Defaults to the public URL of Kantree (SERVER_NAME and SERVER_SECURED).
MCP_API_RESOURCE_URL string null Public URL of the REST API, used as OAuth resource. Defaults to <MCP_ISSUER_URL>/api/1.0.
MCP_API_BASE_URL string http://127.0.0.1:5000/api/1.0 URL of the REST API, for the MCP server.
MCP_INTROSPECTION_URL string http://127.0.0.1:5000/oauth/introspect URL of the OAuth token introspection endpoint, for the MCP server.
MCP_TOKEN_URL string http://127.0.0.1:5000/oauth/token URL of the OAuth token endpoint, for the MCP server.
MCP_OAUTH_CLIENT_NAME string kantree-mcp Name of the OAuth client of the MCP server.
MCP_OAUTH_CLIENT_ID string null ID of the OAuth client of the MCP server. Create the client with kantree provision-mcp-oauth-client.
MCP_OAUTH_CLIENT_SECRET string null Secret of the OAuth client of the MCP server.
MCP_HTTP_TIMEOUT integer 10 Timeout, in seconds, of the requests of the MCP server to Kantree.
MCP_ALLOWED_HOSTS list [] Host names that the MCP server accepts.
MCP_ALLOWED_ORIGINS list [] Origins that the MCP server accepts.
MCP_DCR_ENABLED boolean false Allow OAuth dynamic client registration (/oauth/register).

Office documents, video calls and maps

Option Type Default Description
WOPI_SERVER_URL string null URL of a WOPI server (for example Collabora Online) for browsers. Turns on the previews of office documents.
WOPI_PREVIEW_TOKEN_TTL integer 3600 Lifetime, in seconds, of the read-only tokens of the WOPI previews.
LIVEKIT_WS_URL string null Websocket URL of the LiveKit server for browsers. Turns on video calls.
LIVEKIT_API_URL string null URL of the LiveKit server API.
LIVEKIT_API_KEY string devkey API key of the LiveKit server.
LIVEKIT_API_SECRET string secret API secret of the LiveKit server.
MAPBOX_API_KEY string null Mapbox API key, for the geocoding of addresses.
MAXMIND_GEOIP_TOKEN string null MaxMind token to download the GeoIP databases.

Email sending

The MAIL_* options that are not listed here are passed to the default connection, without the prefix and in lower case: with MAIL_PROVIDER mailgun, MAIL_MAILGUN_API_KEY gives the mailgun_api_key option. See the mail providers below for their options.

Option Type Default Description
MAIL_PROVIDER string smtp Provider of the default connection. A “module::Class” path gives a custom provider. Values: smtp, mailgun, brevo, sweego.
MAIL_SERVER string 127.0.0.1 SMTP server.
MAIL_PORT integer 25 SMTP port.
MAIL_USERNAME string null SMTP user name.
MAIL_PASSWORD string null SMTP password.
MAIL_USE_TLS boolean false Use STARTTLS.
MAIL_USE_SSL boolean false Use SSL/TLS from the start of the connection.
MAIL_DEFAULT_SENDER string Kantree (no-reply) <no-reply@kantree.io> Sender of all the emails.
MAIL_CONNECTIONS dict {} Named mail connections. Each connection is a dict with a provider key and the options of the provider. A connection named “default” replaces the connection of the MAIL_* options.
MAIL_SUPPRESS_SEND boolean false Do not send emails.
MAIL_SILENT_FAILURES boolean true Log the sending errors instead of raising them.
MAIL_SEND_ASYNC boolean false Send emails in background tasks.
MAIL_LOG_MESSAGES boolean null Save the emails that are not sent (MAIL_SUPPRESS_SEND) in MAIL_DUMPED_MESSAGES_FOLDER.
MAIL_LOG_MESSAGES_ON_FAILURE boolean false Save the emails that fail to send in MAIL_DUMPED_MESSAGES_FOLDER.
MAIL_DUMPED_MESSAGES_FOLDER string email_logs Folder of the saved emails.
MAIL_DEFAULT_LOCALE string null Language of the emails when the recipient has none. Defaults to DEFAULT_LOCALE.
MAIL_INLINE_CSS boolean false Move the CSS of the email templates into style attributes.
MAIL_EMAIL_TPL_BGCOLOR string #f6f6f6 Background color of the emails.
MAIL_EMAIL_TPL_BTN_BGCOLOR string #10967d Background color of the buttons in emails.
MAIL_EMAIL_TPL_BTN_COLOR string #FFF Text color of the buttons in emails.
MAIL_EMAIL_TPL_FOOTER_TEXT_COLOR string #999 Text color of the footer of the emails.
MAIL_EMAIL_TPL_WIDTH string 800 Maximum width, in pixels, of the emails.
MAIL_EMAIL_TPL_FONT string font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; CSS font style of the emails.
EMAIL_INBOUND_DOMAIN string null Domain of the inbound email addresses, also used as reply-to of the notifications. Needs an email_inbound extension.
IGNORE_INBOUND_EMAIL_CC list [] Email addresses to ignore in the CC field of inbound emails.

Mail providers

smtp

Option Type Default Description
server string 127.0.0.1  
port integer 25  
username string null  
password string null  
use_tls boolean false  
use_ssl boolean false  
default_sender string null  
max_emails integer null Maximum number of emails by connection.
ascii_attachments boolean false  

mailgun

Option Type Default Description
mailgun_api_key string   Required.
mailgun_domain string   Required.
mailgun_api_url string https://api.mailgun.net/v3  

brevo

Option Type Default Description
brevo_api_key string   Required.
brevo_api_url string https://api.brevo.com/v3  

sweego

Option Type Default Description
sweego_api_key string   Required.
sweego_api_url string https://api.sweego.io  
sweego_open_tracking boolean false  

File storage

Option Type Default Description
UPLOAD_BACKEND string local Name of the default upload backend, a key of UPLOAD_BACKENDS or a built-in backend.
UPLOAD_BACKENDS dict {} Upload backends, by name. Each backend is a dict with a backend key (a built-in backend or the name of another entry) and the options of the backend. See the upload backends below.
EXPORTS_UPLOAD_BACKEND string null Upload backend of the exports. Defaults to UPLOAD_BACKEND.
UPLOAD_DIR string uploads Folder of the uploaded files, for the local backend.
UPLOAD_TMP_DIR string null Folder of the temporary files (large uploads, inbound email attachments). Defaults to the system temporary folder.
MAX_UPLOAD_SIZE integer null Maximum size of an uploaded file, in bytes.
MAX_PUBLIC_UPLOAD_SIZE integer null Maximum size of a file uploaded from a public form, in bytes.
MAX_FILE_PREVIEW_SIZE integer 52428800 (50 MB) Maximum size of a file that gets a preview, in bytes. null removes the limit.
LIMIT_PUBLIC_UPLOAD_FILE_TYPES list null File types accepted from public forms. Values: documents, media, images, videos, audio, archives.
NGINX_UPLOADS string null Serve the uploaded files with the X-Accel-Redirect header of Nginx. Nginx must be configured for it.

Upload backends

local

Files in a local folder.

Option Type Default Description
upload_dir string <UPLOAD_DIR>  

s3

Files in an S3-compatible object storage (AWS S3, MinIO, Scaleway, OVH, …).

Browsers upload the files directly to the bucket. Add a CORS rule to the bucket that allows the GET, POST and PUT methods from the URL of Kantree (for example https://kantree.example.com), with all headers. Without it, uploads fail with a CORS error.

Option Type Default Description
bucket string   Required.
access_key string null Access key ID. Defaults to the AWS credentials of the environment.
secret_key string null Secret access key.
region string null  
endpoint_url string null URL of an S3-compatible provider other than AWS.
filename_prefix string "" Prefix of the object keys.
acl string public-read ACL of the uploaded objects. Empty for none.
async boolean false Upload and delete the files in background tasks.
signed_url boolean true Give signed URLs to the files.
signed_url_ttl integer 3600 Lifetime of the signed URLs, in seconds.
set_content_disposition_header_with_filename boolean true  
ignore_images_content_disposition_header boolean true  
charset string null Charset added to the Content-Type of the objects.
aws_session_token string null  
config dict null Options of the botocore client configuration.

http

Files referenced by an http:// URL. No options.

https

Files referenced by an https:// URL. No options.

Background tasks and queues

Option Type Default Description
RQ_ASYNC boolean true Run the tasks in the workers. If false, tasks run in the process that creates them.
RQ_REDIS_URL string null Redis URI of the task queues. Defaults to REDIS_URI.
RQ_QUEUES list [default] Queues that the workers listen to.
RQ_SCHEDULER_QUEUE string default Queue of the scheduled tasks.
RQ_SCHEDULER_INTERVAL integer 60 Interval, in seconds, of the scheduler.
TASKS_TIMEOUT integer 180 Timeout of the tasks, in seconds.
TASKS_SCHEDULED_TIMEOUT integer 300 Timeout of the scheduled tasks, in seconds.
QUEUE_PROJECT_HOOKS string null Queue of the workspace hooks (integrations). Null uses the default queue.
QUEUE_AUTOMATIONS string null Queue of the automations.
QUEUE_AUTOMATIONS_HIGH_COMPLEXITY string null Queue of the automations of high complexity (see AUTOMATION_COMPLEXITY_HIGH_THRESHOLD).
QUEUE_AUTOMATIONS_PER_ORG dict null Queue of the automations of some organizations, by organization ID.
QUEUE_AUTOMATIONS_PER_PROJECT dict null Queue of the automations of some workspaces, by workspace ID.
QUEUE_RELATED_CARDS string null Queue of the updates of related cards.
QUEUE_COMPUTE_FORMULAS string null Queue of the formula computations.
QUEUE_REFRESH_CHARTS string null Queue of the chart refreshes.
QUEUE_BATCH_ACTIONS string null Queue of the batch actions on cards.
QUEUE_ASSISTANT string null Queue of the AI assistant.
QUEUE_PROJECT_IMPORT string null Queue of the workspace imports.
QUEUE_WEBHOOKS string null Queue of the webhooks.
QUEUE_NOTIFICATIONS string null Queue of the notifications.
AUTOMATION_COMPLEXITY_HIGH_THRESHOLD integer 100 Complexity above which an automation goes to QUEUE_AUTOMATIONS_HIGH_COMPLEXITY.
FORMULA_QUEUE_PARALLEL_BATCH_SIZE integer 200 Number of cards of each batch of formula computations. Batches run in parallel.
PROJECT_IMPORTER_TASK_TIMEOUT integer 500 Timeout of the import tasks, in seconds. Increase it to import large workspaces.
REFRESH_CHART_TASK_TIMEOUT integer 300 Timeout of the chart refresh tasks, in seconds.
AUTOMATIONS_TASK_TIMEOUT integer 180 Timeout of the automation tasks, in seconds.

Logging and monitoring

Option Type Default Description
LOG_LEVEL string INFO Log level. Values: DEBUG, INFO, WARNING, ERROR.
LOG_FILENAME string null Log to this file.
AI_LOG_FILENAME string null Log the AI requests and responses to this file, as JSON Lines. The file contains sensitive data.
SYSLOG_HOST string null Log to this syslog host.
SYSLOG_PORT integer 514 Port of the syslog host.
DATABASE_DEBUG boolean false Log the SQL queries.
SENTRY_DSN string null Send the errors to Sentry.
SENTRY_ENV string null Sentry environment. Defaults to ENV.
SENTRY_TRACES_SAMPLE_RATE float 0.05 Sample rate of the Sentry traces.
SENTRY_PROFILES_SAMPLE_RATE float 0.5 Sample rate of the Sentry profiles.
ADMIN_LOG_FILENAME string null Show this log file in the admin area.
ADMIN_RQ_DASHBOARD_URL string null Show the RQ dashboard at this URL in the admin area, through a Kantree proxy.
ADMIN_WARNING_CONTACT string null Email address to contact when a limit is reached.
IGNORE_SERVER_NAME_MISMTATCH_ERROR boolean false Do not log the errors of requests whose host does not match SERVER_NAME.

Security

Option Type Default Description
ADMIN_CAN_ADD_NEW_USERS boolean true Admins can create users in the admin area.
ADMIN_CAN_ACCESS_ALL_PROJECTS boolean true Admins can access all the workspaces.
READONLY_USERNAME boolean false Nobody can change a user name, not even admins. Use it with an external authentication (LDAP, SAML).
READONLY_EMAIL boolean false Nobody can change an email address, not even admins.
USER_CAN_DELETE_ACCOUNT boolean true Users can delete their account.
ALLOW_PUBLIC_PROJECTS boolean true Workspaces can be visible to visitors who are not logged in.
HIDE_LOGOUT_BUTTON boolean false Hide the logout button. Useful with SSO.
SHOW_LOGGED_OUT_PAGE boolean false Show a “logged out” page after logout instead of redirecting to the home page.
DISABLE_USER_API_KEYS boolean false Users cannot create personal API keys.
ENABLE_ORG_INVITE_LINK boolean true Members can be invited to an organization with a link.
CSP_HEADER boolean true Send the Content-Security-Policy header.
CSP_SAFE_URLS list ['''self''', '''unsafe-inline''', '''unsafe-eval'''] Allowed sources of the Content-Security-Policy.
IFRAME_ALLOWED_ANCESTORS list ['''self'''] Pages that can embed Kantree in an iframe (CSP frame-ancestors). Null to disable the restriction.
AUTOMATION_RULES_RUN_TOKEN_TTL integer null Lifetime, in seconds, of the tokens that run an automation rule from a link.
OUTBOUND_HTTP_ALLOWED_SCHEMES list [https, http] URL schemes allowed in the HTTP requests that users configure (webhooks, automations, AI agents).
OUTBOUND_HTTP_ALLOWED_HOSTS list null If set, the only hosts allowed in the HTTP requests that users configure.
OUTBOUND_HTTP_BLOCKED_HOSTS list [] Hosts refused in the HTTP requests that users configure.
OUTBOUND_HTTP_MAX_RESPONSE_BYTES integer 2097152 Maximum size of the responses to the HTTP requests that users configure, in bytes.
OUTBOUND_HTTP_MAX_REDIRECTS integer 0 Maximum number of redirects followed by the HTTP requests that users configure.
OUTBOUND_HTTP_DEBUG_ALLOWED_HOSTS list [localhost, kantree.local, kantree.io] Hosts allowed in development mode, even if private.
EXTERNAL_REQUEST_TIMEOUT integer 10 Timeout of the requests to external services, in seconds.
WEBHOOK_REQUEST_TIMEOUT integer 10 Timeout of the webhook requests, in seconds. Defaults to EXTERNAL_REQUEST_TIMEOUT.
WEBHOOKS_WHITELIST list [] If set, the only URLs allowed for the webhooks.
WEBHOOK_MAX_ERROR_COUNT integer 5 Number of errors after which a webhook is disabled.

Authentication

Option Type Default Description
AUTH_ALLOW_LOGIN boolean true Users can log in with a password form.
AUTH_ALLOW_SIGNUP boolean true Visitors can create an account. Set to false with an external authentication (LDAP, SAML, OIDC).
AUTH_ALLOW_RESET_PASSWORD boolean true Users can reset their password.
AUTH_ALLOW_EMAIL_OR_USERNAME_LOGIN boolean true Users can log in with their email address or their user name.
AUTH_DISABLE_PASSWORD_AUTHENTICATION boolean false Turn off the authentication by password.
AUTH_MUST_PROVIDE_EMAIL boolean true An email address is required at signup.
AUTH_EMAIL_ALLOWED_DOMAINS list null If set, the only email domains accepted for users.
AUTH_MUST_PROVIDE_USERNAME boolean true A user name is required at signup.
AUTH_FORBIDDEN_USERNAMES list [] User names that nobody can take (lower case).
AUTH_MIN_USERNAME_LENGTH integer 2 Minimum length of a user name.
AUTH_ALLOW_SPACES_IN_USERNAME boolean false User names can contain spaces.
AUTH_CHECK_USERNAME_AVAILABILITY boolean false Check in the signup form that the user name is free. Turns on a public endpoint.
AUTH_VALIDATE_PASSWORD_REGEXPS list null Password rules: a list of [regexp, message] pairs. A password must match each regexp.
AUTH_MAX_PASSWORD_LENGTH integer 500 Maximum length of a password.
AUTH_PREVENT_PASSWORD_REUSE boolean false Users cannot use one of their previous passwords again.
AUTH_MAX_PASSWORD_REUSE_SAVED integer null Number of previous passwords kept for AUTH_PREVENT_PASSWORD_REUSE. Null keeps all.
AUTH_MIN_TIME_BETWEEN_PASSWORD_CHANGE integer null Minimum time between two password changes, in seconds.
AUTH_EXPIRE_PASSWORD_AFTER integer null Users must change their password after this time, in seconds.
AUTH_FREEZE_LOGIN_AFTER_FAILED_ATTEMPTS integer 5 Number of failed logins after which the login of the account is frozen.
AUTH_FREEZE_LOGIN_FAILED_ATTEMPTS_PERIOD integer 300 Period, in seconds, in which the failed logins are counted.
AUTH_FREEZE_LOGIN_DURATION integer 900 Duration of the freeze, in seconds.
AUTH_RATE_LIMIT_COUNT integer 100 Maximum number of signups in AUTH_RATE_LIMIT_PERIOD.
AUTH_RATE_LIMIT_PERIOD integer 60 Period of AUTH_RATE_LIMIT_COUNT, in seconds.
AUTH_SESSION_TTL integer 300 Lifetime of an authentication, in seconds. The remember cookie of the login renews it.
AUTH_REMEMBER_DAYS integer 365 Lifetime of the remember cookie, in days.
AUTH_ENABLE_2FA boolean true Users can turn on two-factor authentication.
AUTH_FORCE_2FA boolean false All users must turn on two-factor authentication.
AUTH_2FA_ISSUER_NAME string null Issuer name shown in the authenticator apps. Defaults to TITLE.
AUTH_2FA_REMEMBER_DAYS integer 60 Number of days during which a device does not ask for the second factor again.
AUTH_2FA_REMEMBER_COOKIE_OPTIONS dict {httponly: true, secure: <SERVER_SECURED>} Options of the cookie that remembers the second factor.
AUTH_SEND_WELCOME_EMAIL boolean\|string false Send a welcome email after signup. A string gives the template of the email.
AUTH_LOGIN_USER_ON_SIGNUP boolean true Log the user in after signup.
AUTH_SEND_EMAIL_VALIDATION_EMAIL boolean false Send an email to validate the email address after signup.
AUTH_BLOCK_NON_EMAIL_VALIDATED_USERS boolean false Users cannot log in until they validate their email address.
AUTH_ALLOW_NON_EMAIL_VALIDATED_USERS_WHO_LOGGED_IN_BEFORE boolean true With AUTH_BLOCK_NON_EMAIL_VALIDATED_USERS, users who logged in before can still log in.
AUTH_EMAIL_VALIDATION_TTL integer null Lifetime of the email validation links, in seconds. Null for no limit.
AUTH_LOGIN_AFTER_EMAIL_VALIDATION boolean true Log the user in after they validate their email address.
AUTH_SEND_RESET_PASSWORD_EMAIL boolean true Send the reset password email.
AUTH_RESET_PASSWORD_TTL integer 3600 Lifetime of the reset password links, in seconds.
AUTH_LOGIN_USER_ON_RESET_PASSWORD boolean true Log the user in after they reset their password.
AUTH_RECAPTCHA_KEY string null reCAPTCHA site key. Turns on reCAPTCHA in the signup form.
AUTH_RECAPTCHA_SECRET string null reCAPTCHA secret key.
AUTH_HCAPTCHA_KEY string null hCaptcha site key. Turns on hCaptcha in the signup form.
AUTH_HCAPTCHA_SECRET string null hCaptcha secret key.
AUTH_DEBUG_CAPTCHA boolean false Check the captcha in development mode too.
AUTH_OAUTH_SIGNUP_ONLY boolean false Users can only sign up with an external provider (OAuth, OIDC).
AUTH_OAUTH_LOGIN_ONLY boolean false Users can only log in with an external provider.
AUTH_OAUTH_MUST_SIGNUP boolean true A new user who logs in with an external provider goes through the signup form.
AUTH_OAUTH_MUST_PROVIDE_PASSWORD boolean false A user who signs up with an external provider must also choose a password.
AUTH_DEFAULT_AUTH_PROVIDER_NAME string app Name of the provider of the password logins, in the login records.
AUTH_ENABLE_ACCESS_TOKENS boolean true Programmatic logins can get a signed access token.
AUTH_ACCESS_TOKENS_TTL integer null Lifetime of the access tokens, in seconds. Null for no limit.
AUTH_ENABLE_ACCESS_TOKENS_WEB_FLOW boolean true Applications can get an access token through a login in the browser.
AUTH_ACCESS_TOKENS_WEB_FLOW_ALLOWED_REDIRECTS list ['<scheme>://<SERVER_NAME>/.*'] Regexps of the redirect URLs allowed in the web flow of the access tokens.
AUTH_LOGIN_VIEW string users.login Endpoint of the login page.
AUTH_LOGIN_FORM_CLASS string kantree.auth.forms.LoginWithIdentifierForm Python class of the login form.
AUTH_LOGIN_2FA_FORM_CLASS string kantree.auth.forms.Login2FAForm Python class of the second factor form.
AUTH_SIGNUP_FORM_CLASS string kantree.auth.forms.SignupForm Python class of the signup form. Becomes SignupWithTOSForm when TERMS_URL or PRIVACY_URL is set.
AUTH_SEND_RESET_PASSWORD_FORM_CLASS string kantree.auth.forms.SendResetPasswordForm Python class of the form that asks for a reset password email.
AUTH_RESET_PASSWORD_FORM_CLASS string kantree.auth.forms.ResetPasswordForm Python class of the reset password form.
AUTH_LOGIN_REDIRECT string null Redirect the login page to this URL.
AUTH_SIGNUP_REDIRECT string null Redirect the signup page to this URL.
AUTH_RESET_PASSWORD_REDIRECT string null Redirect the reset password page to this URL.
AUTH_REDIRECT_AFTER_LOGIN string index Endpoint or URL after a login.
AUTH_REDIRECT_AFTER_LOGIN_DISALLOWED string null Endpoint or URL when the login is disabled.
AUTH_REDIRECT_AFTER_SIGNUP string index Endpoint or URL after a signup.
AUTH_REDIRECT_AFTER_SIGNUP_DISALLOWED string null Endpoint or URL when the signup is disabled.
AUTH_REDIRECT_AFTER_RESET_PASSWORD_TOKEN boolean\|string false Endpoint or URL after a click on a reset password link. False shows the reset password form.
AUTH_REDIRECT_AFTER_RESET_PASSWORD string index Endpoint or URL after a password reset.
AUTH_REDIRECT_AFTER_RESET_PASSWORD_DISALLOWED string users.login Endpoint or URL when the password reset is disabled.
AUTH_REDIRECT_AFTER_EMAIL_VALIDATED string index Endpoint or URL after an email validation.
AUTH_REDIRECT_AFTER_LOGOUT string index Endpoint or URL after a logout. Becomes “logged_out” when SHOW_LOGGED_OUT_PAGE is true.
SSO_LOGIN_URL string null Show a “Login with SSO” link to this URL on the login and signup pages. The SSO extensions set it.
SSO_LOGIN_PAGE boolean false Show an SSO panel next to the password form when SSO_LOGIN_URL is set.
SSO_LOGIN_TITLE localized string null Title of the SSO panel.
SSO_LOGIN_BUTTON_LABEL localized string null Label of the button of the SSO panel.
SSO_LOGIN_DESCRIPTION localized string null Text of the SSO panel.
SSO_LOGIN_HELP_URL localized string null URL of the help link of the SSO panel.
SSO_LOGIN_HELP_LABEL localized string null Label of the help link of the SSO panel.
ALLOW_SIGNUP boolean true Deprecated: use AUTH_ALLOW_SIGNUP. Visitors can create an account.
ENABLE_2FA boolean true Deprecated: use AUTH_ENABLE_2FA. Users can turn on two-factor authentication.
USER_CAN_RESET_PASSWORD boolean true Deprecated: use AUTH_ALLOW_RESET_PASSWORD. Users can reset their password.
SIGNUP_WELCOME_EMAIL boolean false Deprecated: use AUTH_SEND_WELCOME_EMAIL. Send a welcome email after signup.
VALIDATE_USER_EMAILS boolean false Deprecated: use AUTH_SEND_EMAIL_VALIDATION_EMAIL. Send an email to validate the email address.
BLOCK_NON_EMAIL_VALIDATED_USERS boolean false Deprecated: use AUTH_BLOCK_NON_EMAIL_VALIDATED_USERS. Users cannot log in until they validate their email address.
RECAPTCHA_KEY string null Deprecated: use AUTH_RECAPTCHA_KEY. reCAPTCHA site key.
RECAPTCHA_SECRET string null Deprecated: use AUTH_RECAPTCHA_SECRET. reCAPTCHA secret key.
HCAPTCHA_KEY string null Deprecated: use AUTH_HCAPTCHA_KEY. hCaptcha site key.
HCAPTCHA_SECRET string null Deprecated: use AUTH_HCAPTCHA_SECRET. hCaptcha secret key.

Signup and new users

Option Type Default Description
SIGNUP_MESSAGE localized string null Message shown on the signup page.
SIGNUP_NEWSLETTER boolean false Show the “subscribe to the newsletter” option on the signup page.
SIGNUP_URL string null Signup URL in the invitation emails. Defaults to the signup page of Kantree.
NEW_USERS_LIMIT_DOMAINS list [] If set, only email addresses of these domains can sign up.
NEW_USERS_BLOCK_DOMAINS list [] Email addresses of these domains cannot sign up.
NEW_USERS_AS_OBSERVERS boolean false New users are observers.
USERS_APPROVED_DOMAINS list [] Approved email domains.
NEW_USERS_AS_OBSERVERS_AUTO_APPROVE boolean true With NEW_USERS_AS_OBSERVERS, users of USERS_APPROVED_DOMAINS are full members.
AUTO_JOIN_ORG_AFTER_SIGNUP string null Name of an organization that new users join.
ONBOARDING_WELCOME_PROJECT string null Slug of a workspace copied for each new user. Users must be allowed to have private workspaces.
ONBOARDING_TOUR_ENABLED boolean true Show the onboarding tour to new users.
SEND_ONBOARDING_EMAILS boolean false Send a series of emails to new users during their first days.
ONBOARDING_HIDE_PREFERRED_TEMPLATE_TAG boolean false Hide the choice of the preferred template tag during onboarding.
FORCE_READ_MIN_VERSION_ON_SIGNUP string null Version of Kantree (for example “11.2.0”) up to which the release notes are marked as read for new users, if it is higher than the current version.

Users

Option Type Default Description
USER_TRY_GRAVATAR boolean false Use the Gravatar of users as avatar.
USER_CAN_CREATE_PROJECTS boolean true Users can create personal workspaces, outside organizations.
USER_CAN_CREATE_PRIVATE_PROJECTS boolean true Users can create private personal workspaces.
USER_CAN_JOIN_ORGANIZATIONS boolean true Users can join organizations.
USER_CAN_CREATE_ORGANIZATIONS boolean true Users can create organizations.
AUTO_DISABLE_USER_AFTER_DAYS_NOT_ACCESSED boolean\|integer false Disable the users who did not use Kantree for this number of days.
BULK_IMPORT_USERS_SYNC string disable What to do with the users missing from a CSV synchronization of users. Values: observer, disable, delete.

Organizations and teams

Option Type Default Description
ORG_AUTHORIZED_GUEST_ROLES boolean\|list true Roles that guests of a workspace can have. True allows all roles; a list gives the names of built-in roles.
ORG_CAN_CREATE_PRIVATE_PROJECTS boolean true Organizations can have private workspaces. If false, only public workspaces are allowed.
ORG_AT_LEAST_ONE_OWNER_REQUIRED boolean false An organization must have an owner. Without owner, only admins can manage it.
ORG_CAN_SELF_EXPORT boolean false Owners can export their organization.
ORG_AUTO_DELETE_WHEN_NO_MEMBERS boolean false Delete an organization when its last member leaves.
DEFAULT_ORG_MEMBER_ROLE string Member Role of the members of an organization in its workspaces.
DEFAULT_PUBLIC_ROLE string Observer Role of the visitors of a public workspace.
DEFAULT_GUEST_ROLE string Observer Role of the guests of a workspace.
ADMIN_PROJECT_ROLE string Admin Role of the workspace admins.
READ_ONLY_PROJECT_ROLE string Observer Read-only role.
READ_ONLY_AND_COMMENT_PROJECT_ROLE string Observer allowed to comment Read-only role that can comment.
ORG_BUILTIN_PROJECT_ROLES list <src/kantree/builtins/roles.yml> Built-in roles of the organizations, with their permissions.
ORG_BUILTIN_TOP_LEVEL_CARD_ATTRIBUTES list <src/kantree/builtins/top_level_card_attributes.yml> Built-in fields of the top-level cards.
BASE_PROJECT_TEMPLATES list <src/kantree/builtins/base_proj_tpls.yml> Base templates offered when a workspace is created.

Invitations and anti-spam

Option Type Default Description
MAX_INVITES_AT_ONCE integer null Maximum number of invitations a user can send at once.
MAX_TOTAL_INVITES integer null Maximum number of invitations of a workspace or a team, over its lifetime.
MAX_PENDING_INVITES integer 100 Maximum number of pending invitations of a workspace or a team.
MAX_EMAIL_TEMPLATE_SEND_PER_DAY integer null Maximum number of emails a team can send with email templates each day.

Appearance

Option Type Default Description
NAVBAR_LOGO_URL string null Logo of the navigation bar (200x50px).
AUTH_PAGE_LOGO string null Logo of the login and signup pages (100x100px).
AUTH_BACKGROUND string null CSS background of the left panel of the login and signup pages.
THEME_COLOR string null Default color of the interface.
DEFAULT_FORM_HEADER_COLOR string null Default header color of the forms.
DEFAULT_COLOR_PALETTE list null Default color palette.
PWA_THEME_COLOR string #195753 Theme color of the installed application (PWA).
APP_DESCRIPTION string null Description of the installed application (PWA). Defaults to TITLE.

Template library

Option Type Default Description
PUBLIC_TEMPLATE_LIBRARY boolean false Visitors who are not logged in can see the template library. Only public workspaces are visible to them.
OPEN_TEMPLATE_LIBRARY boolean true All users can publish templates to the library.
TEMPLATE_LIBRARY_DISPLAY_TAGS list\|dict null Only show these tags in the library. A dict gives a list by locale.
TEMPLATE_LIBRARY_FEATURED_TAG localized string Featured Tag of the featured templates.
DEFAULT_TEMPLATE_ID integer null ID of the template workspace used by the organizations that have no default template.

Help and support

Option Type Default Description
HELP_SITE_URL string null URL of your help site. Defaults to the help of kantree.io.
DOCS_PATH string docs Folder of the user documentation shown in the application.
HELP_TICKET_URL string null Show a button that opens this URL to create a support ticket.
SUPPORT_EMAIL string null Email address of the support.
SUPPORT_REQUEST_FORM_SLUG string null Slug of the Kantree form that receives the support requests.
WHATSNEW_ID integer 3 Version of the “what’s new” content. Users see the button until they read this version.

Notifications

Option Type Default Description
NOTIFICATION_SUPPRESS_ACTIVE_MINUTES integer 15 Do not send email, desktop and mobile notifications to a user who was active in the last minutes.
NOTIFICATION_EMAIL_SUPPRESS_ACTIVE_MINUTES integer 15 Deprecated: use NOTIFICATION_SUPPRESS_ACTIVE_MINUTES. Former name of NOTIFICATION_SUPPRESS_ACTIVE_MINUTES.
NOTIFICATION_PRESENCE_USER_TTL_SECONDS integer 1800 Time, in seconds, during which a user stays present after their last activity.
NOTIFICATION_PRESENCE_SESSION_TTL_SECONDS integer 300 Time, in seconds, during which a browser session stays present without a signal.
NOTIFICATION_WEB_PUSH_ENABLED boolean true Send Web Push notifications (desktop and mobile).
NOTIFICATION_WEB_PUSH_PUBLIC_KEY string null VAPID public key of Web Push.
NOTIFICATION_WEB_PUSH_PRIVATE_KEY string null VAPID private key of Web Push.
NOTIFICATION_WEB_PUSH_SUBJECT string mailto:no-reply@kantree.io VAPID subject of Web Push (a mailto or https URL).
NOTIFICATION_WEB_PUSH_TIMEOUT_SECONDS integer 5 Timeout of the Web Push requests, in seconds.
NOTIFICATION_DIGEST_EMAIL_SUBJECT string Your Kantree notification digest Subject of the digest emails.
NOTIFICATION_DIGEST_FREQUENCY_VALUES list [none, daily, weekly, monthly] Frequencies of digest that users can choose.
NOTIFICATION_SETTING_MODE_VALUES list [default, enabled, disabled] Modes of a notification setting.
NOTIFICATION_QUIET_HOURS_DEFAULT_TIMEZONE string UTC Default time zone of the quiet hours.
NOTIFICATION_QUIET_HOURS_DEFAULT_SCHEDULE dict {monday: [], tuesday: [], wednesday: [], thursday: [], friday: [], saturday: [], sunday: []} Default quiet hours, by day of the week.
NOTIFICATION_DEFAULT_CHANNELS dict {reminder: {in_app: true, desktop: false, mobile: true, email: true}, mention: {in_app: true, desktop: false, mobile: true, email: true}, assignment: {in_app: true, desktop: false, mobile: true, email: true}, card_comment: {in_app: true, desktop: false, mobile: true, email: true}, card_activity: {in_app: true, desktop: false, mobile: false, email: true}, invite: {in_app: true, desktop: false, mobile: true, email: true}, automation_report: {in_app: true, desktop: false, mobile: true, email: true}, chat: {in_app: false, desktop: false, mobile: false, email: false}, chat_mention: {in_app: true, desktop: false, mobile: true, email: true}} Default channels of each notification category.
NOTIFICATION_REQUIRED_CHANNELS dict {invite: [email]} Channels that users cannot turn off, by category.
Option Type Default Description
TERMS_FILE string null Path of a file with the terms and conditions.
TERMS_URL localized string null URL of the terms and conditions.
TERMS_UPDATE_DATE string null Date of the last update of the terms (YYYY-MM-DD). Users who did not accept them since this date must accept them.
PRIVACY_URL localized string null URL of the privacy policy.
DATA_PROCESSING_AGREEMENT_URL string null URL of the data processing agreement.
FORCE_TERMS_VALIDATION_AFTER_SIGNUP boolean false Ask new users to accept the terms after signup.

AI

Option Type Default Description
AI_PROVIDERS dict <src/kantree/config.py> AI providers that can be configured, by name (Custom, OpenAI, Claude, Mistral, Google, Google Cloud, AWS Bedrock, Microsoft Azure, GitHub Copilot, LiteLLM). Each provider gives its API URL, its classes, its default model for each capability (general, kql, files, image) and its models. The API keys are set in the admin area or in the organization settings, not here.
AI_CUSTOM_PROVIDERS boolean true AI providers can be added through the API (admin area and organizations). If false, only kantree create-ai-provider adds global providers.
AI_ORG_PROVIDERS boolean true Organizations can add their own AI providers. Needs AI_CUSTOM_PROVIDERS.
AI_ASK_PROVIDER string null Provider of the “ask” features (generate KQL, workspaces and automations from a prompt) in all organizations. Organizations with their own provider keep it.
AI_ASK_PROVIDER_API_KEY string null API key of AI_ASK_PROVIDER.
AI_ASK_MODELS dict {} Model of each “ask” feature: {kql: model, creators: model}. Defaults to the default model of the provider.
AI_ASSISTANT boolean true The AI assistant is available.
AI_ASSISTANT_USER_DEFAULT boolean true The assistant is turned on for new users. Admins can turn it on for each user.
AI_ASSISTANT_REMOTE_ALLOWED string allow AI agents can make HTTP requests. “approve” asks the user for each request. Organizations can only restrict it more. Values: allow, approve, disallow.
AI_ASSISTANT_CAN_ACCESS_FILES string allow AI agents can read the files of the workspaces. Organizations can only restrict it more. Values: allow, approve, disallow.
AI_ASSISTANT_WEBSEARCH dict null Web search backend of the AI agents. Null turns off web searches. See the web search backends below.

Web search backends

searxng

A SearXNG instance with the “json” format turned on.

Option Type Default Description
url string   Required.
params dict {} Extra query parameters, for example categories or engines.

searchapi

SearchApi (https://www.searchapi.io).

Option Type Default Description
api_key string   Required.
engine string google  
url string https://www.searchapi.io/api/v1/search  
params dict {} Extra query parameters, for example gl.

Extensions

Option Type Default Description
EXTENSIONS list [] Optional extensions and integrations to load. An item is a module path, or a dict {module path: options}. See extensions.md. kantree.extensions.emailing is always loaded.

Miscellaneous

Option Type Default Description
ALLOW_STREAMING_EXPORTS boolean true Exports can run during the request instead of in a background task.
PROMO_FILE string null Home page for visitors who are not logged in, from this file.
PROMO_REDIRECT string null Redirect visitors who are not logged in from the home page to this URL.
PROMO_LOCALE_REDIRECT dict {} Like PROMO_REDIRECT, with a URL by locale.
GOOGLE_ANALYTICS_ID string null Track the signups with Google Analytics (only on the login and signup pages).
PLAUSIBLE_URL string null Track the signups with Plausible (only on the login and signup pages).
ENABLE_DEMO_MODE boolean false Allow the demo parameter on the template library and the workspaces.