Info: Some services like Google, Facebook, WhatsApp,
AI services, require the generation and addition of an API key in the
env.sh file.
This is an example of some changes that are possible to be made in the env.sh file:
export EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=true
export EXECUTIONS_DATA_SAVE_ON_ERROR=all
export EXECUTIONS_DATA_SAVE_ON_SUCCESS=all
export N8N_LOG_LEVEL=info
# Activate automatic data pruning
export EXECUTIONS_DATA_PRUNE=true
# Number of hours after execution that n8n deletes data
export EXECUTIONS_DATA_MAX_AGE=168
# Number of executions to store
export EXECUTIONS_DATA_PRUNE_MAX_COUNT=50000
# Custom Timezone. List:
https://en.wikipedia.org/wiki/List_of_tz_database_time_zonesexport GENERIC_TIMEZONE="America/Chicago"
export TZ="America/Chicago"# Allows usage of all builtin modules
export NODE_FUNCTION_ALLOW_BUILTIN=*# Allow node modules to be used in code node -
https://docs.n8n.io/hosting/configuration/#use-built-in-and-external-modules-in-the-code-nodeexport NODE_FUNCTION_ALLOW_EXTERNAL=axios,customerio-node,lodash,moment,express,uuid,dotenv,request,async,cheerio,qs,dayjs,mongoose,form-data,stream,got,turndown,jsdom,@mozilla/readability,@fal-ai/serverless-client,xml2js,node-fetch,showdown,rss-parser,axios-https-proxy-fix,jsonwebtoken,@pinecone-database/pinecone,@langchain/pinecone,papaparse,xlsx,lodash# Space separated list of node modules to install -
https://docs.cloudron.io/apps/n8n/#custom-node-modulesexport EXTRA_NODE_MODULES="axios@latest customerio-node@latest lodash@latest moment@latest express@latest uuid@latest dotenv@latest request@latest async@latest cheerio@latest qs@latest dayjs@latest mongoose@latest form-data@latest stream@latest got@latest turndown@latest jsdom@latest @mozilla/readability@latest @fal-ai/serverless-client@latest xml2js@latest node-fetch@latest showdown@latest rss-parser@latest axios-https-proxy-fix@latest jsonwebtoken@latest @pinecone-database/pinecone@latest @langchain/pinecone@latest papaparse@latest xlsx@latest lodash@latest"
# Allow node modules to be used in code node - https://docs.n8n.io/hosting/configuration/#use-built-in-and-external-modules-in-the-code-node
export NODE_FUNCTION_ALLOW_EXTERNAL=ajv,ajv-formats
# Space separated list of node modules to install - https://docs.cloudron.io/apps/n8n/#custom-node-modules
export EXTRA_NODE_MODULES="handlebars@4.7.7 jsonata@2.0.2"
# Possible Google oAuth example:
export N8N_GOOGLE_OAUTH2_CLIENT_ID='your_google_client_id'
export N8N_GOOGLE_OAUTH2_CLIENT_SECRET='your_google_client_secret'
export N8N_GOOGLE_OAUTH2_CALLBACK_URL='https://your-n8n-domain.com/oauth2/callback'
# Possible Google example:
export N8N_GOOGLE_CLIENT_ID='your_google_client_id'
export N8N_GOOGLE_CLIENT_SECRET='your_google_client_secret'
# Possible Airtable example:
export N8N_AIRTABLE_CLIENT_ID='your_airtable_client_id'
export N8N_AIRTABLE_CLIENT_SECRET='your_airtable_client_secret'
export N8N_AIRTABLE_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Anthropic example:
export N8N_ANTHROPIC_API_KEY='your_anthropic_api_key'
# Possible Asana example:
export N8N_ASANA_CLIENT_ID='your_asana_client_id'
export N8N_ASANA_CLIENT_SECRET='your_asana_client_secret'
export N8N_ASANA_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Baserow example:
export N8N_BASEROW_CLIENT_ID='your_baserow_client_id'
export N8N_BASEROW_CLIENT_SECRET='your_baserow_client_secret'
export N8N_BASEROW_HOST_URL='https://your-baserow-instance-url.com'
export N8N_BASEROW_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Calendly example:
export N8N_CALENDLY_CLIENT_ID='your_calendly_client_id'
export N8N_CALENDLY_CLIENT_SECRET='your_calendly_client_secret'
export N8N_CALENDLY_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible ClickUp example:
export N8N_CLICKUP_CLIENT_ID='your_clickup_client_id'
export N8N_CLICKUP_CLIENT_SECRET='your_clickup_client_secret'
export N8N_CLICKUP_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Cloudflare example:
export N8N_CLOUDFLARE_API_TOKEN='your_cloudflare_api_token'
export N8N_CLOUDFLARE_API_KEY='your_cloudflare_api_key'
export N8N_CLOUDFLARE_EMAIL='your_cloudflare_account_email'
# Possible DeepL example:
export N8N_DEEPL_API_KEY='your_deepl_api_key'
export N8N_DEEPL_API_URL='https://api.deepl.com/v2' # or https://api-free.deepl.com/v2 for free tier
# Possible DeepSeek example:
export N8N_DEEPSEEK_API_KEY='your_deepseek_api_key'
export N8N_DEEPSEEK_API_URL='https://api.deepseek.com/v1'
# Possible Discord example:
export N8N_DISCORD_CLIENT_ID='your_discord_client_id'
export N8N_DISCORD_CLIENT_SECRET='your_discord_client_secret'
export N8N_DISCORD_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Discourse example:
export N8N_DISCOURSE_CLIENT_ID='your_discourse_client_id'
export N8N_DISCOURSE_CLIENT_SECRET='your_discourse_client_secret'
export N8N_DISCOURSE_URL='https://your-discourse-forum-url.com'
export N8N_DISCOURSE_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Dropbox example:
export N8N_DROPBOX_CLIENT_ID='your_dropbox_client_id'
export N8N_DROPBOX_CLIENT_SECRET='your_dropbox_client_secret'
export N8N_DROPBOX_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible ERPNext example:
export N8N_ERPNEXT_CLIENT_ID='your_erpnext_client_id'
export N8N_ERPNEXT_CLIENT_SECRET='your_erpnext_client_secret'
export N8N_ERPNEXT_URL='https://your-erpnext-instance-url.com'
export N8N_ERPNEXT_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Facebook example:
export N8N_FACEBOOK_CLIENT_ID='your_facebook_client_id'
export N8N_FACEBOOK_CLIENT_SECRET='your_facebook_client_secret'
export N8N_FACEBOOK_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Instagram example:
export N8N_INSTAGRAM_CLIENT_ID='your_instagram_client_id'
export N8N_INSTAGRAM_CLIENT_SECRET='your_instagram_client_secret'
export N8N_INSTAGRAM_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Figma example:
export N8N_FIGMA_CLIENT_ID='your_figma_client_id'
export N8N_FIGMA_CLIENT_SECRET='your_figma_client_secret'
export N8N_FIGMA_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Freshdesk example:
export N8N_FRESHDESK_CLIENT_ID='your_freshdesk_client_id'
export N8N_FRESHDESK_CLIENT_SECRET='your_freshdesk_client_secret'
export N8N_FRESHDESK_DOMAIN='your-freshdesk-domain'
export N8N_FRESHDESK_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible GitHub example:
export N8N_GITHUB_CLIENT_ID='your_github_client_id'
export N8N_GITHUB_CLIENT_SECRET='your_github_client_secret'
export N8N_GITHUB_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible GitLab example:
export N8N_GITLAB_CLIENT_ID='your_gitlab_client_id'
export N8N_GITLAB_CLIENT_SECRET='your_gitlab_client_secret'
export N8N_GITLAB_URL='https://your-gitlab-instance-url.com'
export N8N_GITLAB_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Google Gemini example:
export N8N_GOOGLE_GEMINI_API_KEY='your_google_gemini_api_key'
export N8N_GOOGLE_GEMINI_API_URL='https://generativelanguage.googleapis.com/v1'
# Possible Grafana example:
export N8N_GRAFANA_CLIENT_ID='your_grafana_client_id'
export N8N_GRAFANA_CLIENT_SECRET='your_grafana_client_secret'
export N8N_GRAFANA_URL='https://your-grafana-instance-url.com'
export N8N_GRAFANA_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible Grog example:
export N8N_GROG_API_KEY='your_grog_api_key'
export N8N_GROG_API_URL='https://api.grog.ai/v1'
# Possible Gumroad example:
export N8N_GUMROAD_CLIENT_ID='your_gumroad_client_id'
export N8N_GUMROAD_CLIENT_SECRET='your_gumroad_client_secret'
export N8N_GUMROAD_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible HighLevel example:
export N8N_HIGHLEVEL_CLIENT_ID='your_highlevel_client_id'
export N8N_HIGHLEVEL_CLIENT_SECRET='your_highlevel_client_secret'
export N8N_HIGHLEVEL_SUBDOMAIN='your_highlevel_subdomain'
export N8N_HIGHLEVEL_REDIRECT_URL='https://your-n8n-domain.com/callback'
# Possible HubSpot example:
export N8N_CUSTOM_EXTENSIONS=hubspot
export HUBSPOT_CLIENT_ID=your_hubspot_client_id
export HUBSPOT_CLIENT_SECRET=your_hubspot_client_secret
# Possible Home Assistant example:
export N8N_CUSTOM_EXTENSIONS=home-assistant
export HOMEASSISTANT_BASE_URL=https://your-home-assistant-instance.com
export HOMEASSISTANT_ACCESS_TOKEN=your_home_assistant_long_lived_access_token
# Possible Help Scout example:
export N8N_CUSTOM_EXTENSIONS=helpscout
export HELPSCOUT_CLIENT_ID=your_helpscout_client_id
export HELPSCOUT_CLIENT_SECRET=your_helpscout_client_secret
# Possible Jenkins example:
export N8N_CUSTOM_EXTENSIONS=jenkins
export JENKINS_BASE_URL=https://your-jenkins-instance.com
export JENKINS_USERNAME=your_jenkins_username
export JENKINS_API_TOKEN=your_jenkins_api_token
# Possible Jira example:
export N8N_CUSTOM_EXTENSIONS=jira
export JIRA_BASE_URL=https://your-jira-instance.atlassian.net
export JIRA_USERNAME=your_jira_email
export JIRA_API_TOKEN=your_jira_api_token
# Possible Lemlist example:
export N8N_CUSTOM_EXTENSIONS=lemlist
export LEMLIST_API_KEY=your_lemlist_api_key
# Possible LinkedIn example:
export N8N_CUSTOM_EXTENSIONS=linkedin
export LINKEDIN_CLIENT_ID=your_linkedin_client_id
export LINKEDIN_CLIENT_SECRET=your_linkedin_client_secret
# Possible Medium example:
export N8N_CUSTOM_EXTENSIONS=medium
export MEDIUM_CLIENT_ID=your_medium_client_id
export MEDIUM_CLIENT_SECRET=your_medium_client_secret
# Possible Mistral Cloud example:
export N8N_CUSTOM_EXTENSIONS=mistral
export MISTRAL_API_KEY=your_mistral_api_key
export MISTRAL_BASE_URL=https://api.mistral.ai/v1
# Possible MongoDB example:
export N8N_CUSTOM_EXTENSIONS=mongodb
export MONGODB_CONNECTION_URL=mongodb://username:password@hostname:port/database
export MONGODB_SSL=true
Alternative connection string formats:
For MongoDB Atlas:
export MONGODB_CONNECTION_URL=mongodb+srv://username:password@cluster.mongodb.net/database
For local MongoDB:
export MONGODB_CONNECTION_URL=mongodb://localhost:27017/database
# Possible Notion example:
export N8N_CUSTOM_EXTENSIONS=notion
export NOTION_OAUTH_CLIENT_ID=your_notion_client_id
export NOTION_OAUTH_CLIENT_SECRET=your_notion_client_secret
# Possible Okta example:
export N8N_CUSTOM_EXTENSIONS=okta
export OKTA_BASE_URL=https://your-domain.okta.com
export OKTA_CLIENT_ID=your_okta_client_id
export OKTA_CLIENT_SECRET=your_okta_client_secret
export OKTA_OAUTH_DOMAIN=your-domain.okta.com
# Possible Ollama example:
export N8N_CUSTOM_EXTENSIONS=ollama
export OLLAMA_BASE_URL=http://localhost:11434
export OLLAMA_API_KEY=your_ollama_api_key
# Possible OpenAI example:
export N8N_CUSTOM_EXTENSIONS=openai
export OPENAI_API_KEY=your_openai_api_key
export OPENAI_BASE_URL=https://api.openai.com/v1
# Possible Paddle example:
export N8N_CUSTOM_EXTENSIONS=paddle
export PADDLE_VENDOR_ID=your_paddle_vendor_id
export PADDLE_VENDOR_AUTH_CODE=your_paddle_vendor_auth_code
export PADDLE_API_KEY=your_paddle_api_key
# Possible Lemon Squeezy example:
export N8N_LEMONSQUEEZY_API_KEY='your_lemonsqueezy_api_key'
# Possible PayPal example:
export N8N_CUSTOM_EXTENSIONS=paypal
export PAYPAL_CLIENT_ID=your_paypal_client_id
export PAYPAL_CLIENT_SECRET=your_paypal_client_secret
export PAYPAL_ENVIRONMENT=sandbox
# Possible Qdrant example:
export N8N_CUSTOM_EXTENSIONS=qdrant
export QDRANT_URL=https://your-qdrant-instance.com
export QDRANT_API_KEY=your_qdrant_api_key
# Possible S3 example:
export N8N_CUSTOM_EXTENSIONS=s3
export S3_ACCESS_KEY_ID=your_s3_access_key
export S3_SECRET_ACCESS_KEY=your_s3_secret_key
export S3_ENDPOINT=https://s3.amazonaws.com
export S3_BUCKET_NAME=your_bucket_name
export S3_REGION=your_aws_region
# Possible Salesforce example:
export N8N_CUSTOM_EXTENSIONS=salesforce
export SALESFORCE_CLIENT_ID=your_salesforce_client_id
export SALESFORCE_CLIENT_SECRET=your_salesforce_client_secret
export SALESFORCE_LOGIN_URL=https://login.salesforce.com
export SALESFORCE_USERNAME=your_salesforce_username
# Possible Shopify example:
export N8N_CUSTOM_EXTENSIONS=shopify
export SHOPIFY_CLIENT_ID=your_shopify_client_id
export SHOPIFY_CLIENT_SECRET=your_shopify_client_secret
export SHOPIFY_SHOP_NAME=your-shop-name.myshopify.com
# Possible Slack example:
export N8N_CUSTOM_EXTENSIONS=slack
export SLACK_CLIENT_ID=your_slack_client_id
export SLACK_CLIENT_SECRET=your_slack_client_secret
export SLACK_SIGNING_SECRET=your_slack_signing_secret
# Possible Stripe example:
export N8N_CUSTOM_EXTENSIONS=stripe
export STRIPE_API_KEY=your_stripe_secret_key
export STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret
# Possible Telegram example:
export N8N_CUSTOM_EXTENSIONS=telegram
export TELEGRAM_BOT_TOKEN=your_telegram_bot_token
# Possible Twilio example:
export N8N_CUSTOM_EXTENSIONS=twilio
export TWILIO_ACCOUNT_SID=your_twilio_account_sid
export TWILIO_AUTH_TOKEN=your_twilio_auth_token
export TWILIO_PHONE_NUMBER=your_twilio_phone_number
# Possible Webflow example:
export N8N_CUSTOM_EXTENSIONS=webflow
export WEBFLOW_ACCESS_TOKEN=your_webflow_access_token
export WEBFLOW_CLIENT_ID=your_webflow_client_id
export WEBFLOW_CLIENT_SECRET=your_webflow_client_secret
# Possible WhatsApp Business Cloud example:
export N8N_CUSTOM_EXTENSIONS=whatsapp
export WHATSAPP_ACCESS_TOKEN=your_whatsapp_access_token
export WHATSAPP_BUSINESS_ACCOUNT_ID=your_business_account_id
export WHATSAPP_PHONE_NUMBER_ID=your_phone_number_id
export WHATSAPP_WEBHOOK_VERIFY_TOKEN=your_webhook_verify_token
# Possible Wise example:
export N8N_CUSTOM_EXTENSIONS=wise
export WISE_API_KEY=your_wise_api_key
export WISE_PROFILE_ID=your_wise_profile_id
# Possible X (formerly Twitter) example:
export N8N_CUSTOM_EXTENSIONS=x
export X_CLIENT_ID=your_x_client_id
export X_CLIENT_SECRET=your_x_client_secret
export X_ACCESS_TOKEN=your_x_access_token
export X_ACCESS_TOKEN_SECRET=your_x_access_token_secret
# Possible Zendesk example:
export N8N_CUSTOM_EXTENSIONS=zendesk
export ZENDESK_SUBDOMAIN=your-zendesk-subdomain
export ZENDESK_EMAIL=your_zendesk_admin_email
export ZENDESK_API_TOKEN=your_zendesk_api_token
# Possible Zoho example:
export N8N_CUSTOM_EXTENSIONS=zoho
export ZOHO_CLIENT_ID=your_zoho_client_id
export ZOHO_CLIENT_SECRET=your_zoho_client_secret
export ZOHO_REDIRECT_URI=https://your-n8n-domain.com/callback
export ZOHO_DATACENTER=com
# Possible Zoom example:
export N8N_CUSTOM_EXTENSIONS=zoom
export ZOOM_CLIENT_ID=your_zoom_client_id
export ZOOM_CLIENT_SECRET=your_zoom_client_secret
export ZOOM_ACCOUNT_ID=your_zoom_account_id