
- Updated `.env` and `.env.test` files to include PostgreSQL connection settings and Redis configuration. - Migrated database from SQLite to PostgreSQL, updating relevant queries and connection logic. - Enhanced error handling and logging throughout the application. - Added new test utilities for PostgreSQL integration and updated user model methods. - Introduced new routes for user authentication and form management, ensuring compatibility with the new database structure. - Created login and registration views in EJS for user interaction.
34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
PORT=3000
|
|
JWT_SECRET=dognidnrfognpobibsnccofr
|
|
|
|
ADMIN_USER=youradminuser
|
|
ADMIN_PASSWORD=yoursecurepassword
|
|
|
|
# Ntfy Configuration
|
|
NTFY_TOPIC_URL=https://ntfggy.sh/your-secret-form-alerts # IMPORTANT: Change this!
|
|
NTFY_ENABLED=true # set to false to disable ntfy
|
|
|
|
RECAPTCHA_V2_SITE_KEY=your_actual_site_key
|
|
RECAPTCHA_V2_SECRET_KEY=your_actual_secret_key
|
|
|
|
RESEND_API_KEY=xxx
|
|
EMAIL_FROM_ADDRESS=xxx
|
|
|
|
recaptcha_enabled = TRUE
|
|
|
|
DATABASE_URL=postgresql://formies_owner:npg_VtO2HSgGnI9J@ep-royal-scene-a2961c60-pooler.eu-central-1.aws.neon.tech/formies?sslmode=require
|
|
|
|
# Redis
|
|
REDIS_HOST=your_production_redis_host_or_service_name # e.g., the service name in docker-compose.prod.yml like 'redis'
|
|
REDIS_PORT=6379 # Or your production Redis port if different
|
|
REDIS_PASSWORD=your_production_redis_password # Ensure this is set for production
|
|
|
|
# Application specific
|
|
NODE_ENV=production
|
|
PORT=3000 # Or your desired production port
|
|
|
|
# Security - VERY IMPORTANT: Use strong, unique secrets for production
|
|
SESSION_SECRET=generate_a_very_strong_random_string_for_session_secret
|
|
JWT_SECRET=generate_a_very_strong_random_string_for_jwt_secret
|
|
|
|
|