freealberta/influence/example.env

97 lines
2.8 KiB
Bash

# Alberta Influence Campaign Tool - Environment Configuration Example
# Copy this file to .env and update with your actual values
# NocoDB Configuration
# Your NocoDB instance URL and API configuration
NOCODB_URL=https://your-nocodb-instance.com
NOCODB_API_URL=https://your-nocodb-instance.com/api/v1
NOCODB_API_TOKEN=your_nocodb_api_token_here
NOCODB_PROJECT_ID=your_project_id
# SMTP Configuration
# Configure your email service provider settings
SMTP_HOST=smtp.your-provider.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@domain.com
SMTP_PASS=your_email_password_or_app_password
SMTP_FROM_EMAIL=your-sender@domain.com
SMTP_FROM_NAME="Your Campaign Name"
# Admin Configuration
# Set a strong password for admin access
ADMIN_PASSWORD=change_this_to_a_strong_password
# Represent API Configuration
# Canadian electoral data API (usually no changes needed)
REPRESENT_API_BASE=https://represent.opennorth.ca
REPRESENT_API_RATE_LIMIT=60
# App Configuration
# Your application URL and basic settings
APP_URL=http://localhost:3333
PORT=3333
SESSION_SECRET=generate_a_long_random_string_here_at_least_64_characters_long
NODE_ENV=development
# Email Testing Configuration
# IMPORTANT: Set to true for development/testing, false for production
EMAIL_TEST_MODE=true
TEST_EMAIL_RECIPIENT=your-test-email@domain.com
# NocoDB Table IDs
# These will be auto-generated when you run build-nocodb.sh
# DO NOT modify these manually - they are set by the setup script
NOCODB_TABLE_REPRESENTATIVES=
NOCODB_TABLE_EMAILS=
NOCODB_TABLE_POSTAL_CODES=
NOCODB_TABLE_CAMPAIGN_EMAILS=
NOCODB_TABLE_CAMPAIGNS=
NOCODB_TABLE_USERS=
# Optional: Development Mode Settings
# Uncomment and modify these for local development with MailHog
# SMTP_HOST=mailhog
# SMTP_PORT=1025
# SMTP_SECURE=false
# SMTP_USER=
# SMTP_PASS=
# SMTP_FROM_EMAIL=dev@albertainfluence.local
# SMTP_FROM_NAME="Alberta Influence Campaign (DEV)"
# Security Notes:
# - Keep your .env file secure and never commit it to version control
# - Use strong, unique passwords for ADMIN_PASSWORD
# - Generate a secure random string for SESSION_SECRET
# - For production, ensure EMAIL_TEST_MODE=false
# - Use app passwords or API keys for SMTP_PASS, not your main email password
# Common SMTP Provider Examples:
#
# Gmail:
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=your-email@gmail.com
# SMTP_PASS=your_app_password
#
# ProtonMail:
# SMTP_HOST=smtp.protonmail.ch
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=your-email@protonmail.com
# SMTP_PASS=your_app_password
#
# Outlook/Hotmail:
# SMTP_HOST=smtp-mail.outlook.com
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=your-email@outlook.com
# SMTP_PASS=your_app_password
#
# SendGrid:
# SMTP_HOST=smtp.sendgrid.net
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=apikey
# SMTP_PASS=your_sendgrid_api_key