feat: Add new user authentication for v2.00

This commit is contained in:
yznahmad 2025-08-19 01:04:09 +03:00
parent 2caf98ad0f
commit 641544f717
2 changed files with 0 additions and 69 deletions

View File

@ -1,30 +0,0 @@
# Dokploy Environment Variables
# Use these values in your Dokploy environment variables section
NODE_ENV=production
APP_PORT=5173
# Database (uses Docker volume)
DATABASE_URL=file:/app/data/production.db
# Security - CHANGE THESE VALUES!
SESSION_SECRET=your-super-secure-session-secret-change-this-in-production-min-32-chars
ENCRYPTION_KEY=production-secure-encryption-key!
SUPER_ADMIN=superadmin
SUPER_ADMIN_EMAIL=admin@yourcompany.com
SUPER_ADMIN_PASSWORD=YourSecurePassword123!
# Domain (set to your actual domain)
DOMAIN=your-domain.com
# Mail Settings (optional - for password reset features)
MAIL_HOST=
MAIL_PORT=587
MAIL_SECURE=false
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_FROM_NAME=Phosphat Report System
MAIL_FROM_EMAIL=
# Logging
LOG_LEVEL=info

View File

@ -1,39 +0,0 @@
# Production Environment Variables
# Copy this file and rename to .env for production deployment
# Make sure to change all default values for security
# Application Settings
NODE_ENV=production
APP_PORT=5173
DOMAIN=your-domain.com
# Database
DATABASE_URL="file:/app/data/production.db"
# Security
SESSION_SECRET="your-super-secure-session-secret-change-this-in-production-min-32-chars"
ENCRYPTION_KEY="production-secure-encryption-key!"
# Super Admin Account (created on first run)
SUPER_ADMIN="superadmin"
SUPER_ADMIN_EMAIL="admin@yourcompany.com"
SUPER_ADMIN_PASSWORD="YourSecurePassword123!"
# Storage Paths (for bind mounts)
DATA_PATH=./data
BACKUP_PATH=./backups
# Backup Schedule (cron format)
BACKUP_SCHEDULE="0 2 * * *"
# Mail Settings (optional - for password reset features)
MAIL_HOST=""
MAIL_PORT="587"
MAIL_SECURE="false"
MAIL_USERNAME=""
MAIL_PASSWORD=""
MAIL_FROM_NAME="Phosphat Report System"
MAIL_FROM_EMAIL=""
# Logging (optional)
LOG_LEVEL="info"