The Konecty documentation is available in:
The documentation covers main concepts, configuration, API, and usage examples for the Konecty platform.
You will need a mongodb database (you can use a free account at cloud.mongodb.com or a local mongodb install)
Create .env using the sample.
Fill MONGO_URL with your database url, adding authentication and options
MONGO_URL=mongodb+srv://login:[email protected]/?appName=konecty
yarn
yarn start
If this is a empty database, basic metadata and starting collections will be automatically created.
The UI will be running at localhost:3000
If you're using the modern login page (loginPageVariant: 'modern'), the CSS will be automatically generated on first access in development mode. For faster development with CSS hot-reload, run in a separate terminal:
yarn dev:cssThis will watch the Tailwind input file and regenerate CSS automatically when you modify the template.
KONECTY_MODE: Can beproductionordevelopmentDISABLE_KONSISTENT: can be totrueif you don't want Konsistent to run on the same process as Kondata. It's enabled by default.MONGO_URL: Mongo database URLDISABLE_REINDEX: can be totrueif you don't want to verify if all index are created.ALLOWED_ORIGINS: a list of cors alloweds URLs separated by|LOG_REQUEST=true: if provide all requests are loggedsDEFAULT_SMTP_HOST: SMTP host for default email sender (required)DEFAULT_SMTP_PORT: SMTP port for default email sender (required)DEFAULT_SMTP_USERNAME: SMTP username for default email sender (required)DEFAULT_SMTP_PASSWORD: SMTP password for default email sender (required)DEFAULT_SMTP_SECURE: SMTP secure flag for default email senderDEFAULT_SMTP_TLS: SMTP tls flag for default email senderDEFAULT_SMTP_IGNORE_TLS: SMTP configignoreTLSfor nodemailer, if this is true and secure is false then TLS is not used even if the server supports STARTTLS extensionDEFAULT_SMTP_TLS_REJECT_UNAUTHORIZED: SMTP configtls.rejectUnauthorizedfor nodemailer, config would open a connection to TLS server with self-signed or invalid TLS certificateDEFAULT_SMTP_AUTH_METHOD: SMTP configauthMethodfor nodemailer, defines preferred authentication method, defaults to 'PLAIN'DEFAULT_SMTP_DEBUG: SMTP configdebugfor nodemailer, if set to true, then logs SMTP traffic, otherwise logs only transaction eventsUI_URL: host for uiLOG_LEVEL: Pino log levelsLOG_TO_FILE: Optional file name to write all logs. Path relative to project rootDISABLE_SENDMAIL: (optional)trueto disable email processing
WHATSAPP_ACCESS_TOKEN: WhatsApp Business API access tokenWHATSAPP_PHONE_NUMBER_ID: WhatsApp Business API phone number IDWHATSAPP_BUSINESS_ACCOUNT_ID: (optional) WhatsApp Business Account IDWHATSAPP_TEMPLATE_ID: WhatsApp template ID for OTP messagesHAS_COPY_BUTTON: (optional) Set totrueif the WhatsApp template has a URL button that requires the OTP code as parameter. When enabled, the OTP code will be sent as the URL button parameter. Default:false. Priority: Namespace → env var → default
LOGIN_PAGE_VARIANT: (optional) Login page variant. Values:classic(default) ormodern. Priority: Namespace → env var → defaultOTP_EMAIL_ENABLED: (optional) Enable OTP via email. Values:trueorfalse. Priority: Namespace → env var → defaultfalseOTP_WHATSAPP_ENABLED: (optional) Enable OTP via WhatsApp. Values:trueorfalse. Priority: Namespace → env var → defaultfalseDEFAULT_LOCALE: (optional) Default locale for login page. Values:pt-BR(default) oren. Priority: Namespace → env var → defaultpt-BR
STORAGE: Can bes3orfsfor files and images uploadsBLOB_URL: (optional) if use external server for file uploadPREVIEW_URL: (optional) if use external file server
S3_DOMAIN: required if different of AWS eg:digitaloceanspaces.comS3_REGION: S3 regionS3_BUCKET: S3 bucketS3_ACCESSKEY: Generated for your aws account. Follow this instructions: Where's My Secret Access Key?.S3_SECREDKEY: Generate with instructions above (👆).S3_PUBLIC_URL: Bucket public url
STORAGE_DIR: Filesystem directory for file storage
docker pull konecty/konecty
docker run --name kondata -p 3000:3000 --link mongo --env MONGO_URL=mongodb://mongo:27017/konecty --env MONGO_OPLOG_URL=mongodb://mongo:27017/local konecty/konecty
The namespace is made of many parts, documented at:
- KONDATA only log requests when status code of the response isn't 200 (OK).
