70 lines
1.8 KiB
Plaintext
Executable File
70 lines
1.8 KiB
Plaintext
Executable File
# Database Configuration
|
|
DB_PASSWORD=your_secure_postgresql_password_here
|
|
DATABASE_URL=postgresql://sap_user:${DB_PASSWORD}@pgsql:5432/sap_sync
|
|
|
|
# PgAdmin Configuration
|
|
PGADMIN_EMAIL=admin@your-domain.com
|
|
PGADMIN_PASSWORD=your_secure_pgadmin_password_here
|
|
|
|
# Backend Configuration
|
|
APP__SERVER__HOST=0.0.0.0
|
|
APP__SERVER__PORT=3001
|
|
RUST_LOG=info
|
|
NODE_ENV=development
|
|
|
|
# Session & Security
|
|
APP__SESSION__COOKIE_NAME=sap_sync_session
|
|
APP__SESSION__SECURE=false
|
|
APP__SESSION__HTTP_ONLY=true
|
|
APP__SESSION__SAME_SITE=Strict
|
|
APP__SESSION__MAX_AGE=1800
|
|
|
|
# CSRF Configuration
|
|
APP__CSRF__ENABLED=true
|
|
APP__CSRF__COOKIE_NAME=csrf_token
|
|
APP__CSRF__TOKEN_EXPIRY_HOURS=24
|
|
|
|
# Authentication Configuration
|
|
APP__AUTH__SESSION_TIMEOUT_SECONDS=1800
|
|
APP__AUTH__MAX_LOGIN_ATTEMPTS=5
|
|
APP__AUTH__LOCKOUT_DURATION_SECONDS=3600
|
|
|
|
# MFA Configuration
|
|
APP__MFA__ENABLED=true
|
|
APP__MFA__SECRET_LENGTH=32
|
|
APP__MFA__QR_CODE_SERVICE_NAME=SAP Sync
|
|
APP__MFA__BACKUP_CODES_COUNT=10
|
|
|
|
# Sync Configuration
|
|
APP__SYNC__DEFAULT_INTERVAL_SECONDS=3600
|
|
APP__SYNC__DEFAULT_DIRECTION=sap_to_plesk
|
|
APP__SYNC__CONFLICT_RESOLUTION=timestamp_based
|
|
APP__SYNC__MAX_WORKERS=4
|
|
|
|
# Frontend Configuration
|
|
VITE_API_URL=http://localhost:3001/api
|
|
|
|
# Redis Configuration (Optional - for caching)
|
|
REDIS_URL=redis://redis:6379
|
|
|
|
# Email Configuration (for notifications)
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_USERNAME=your_email@gmail.com
|
|
SMTP_PASSWORD=your_app_password
|
|
SMTP_FROM=noreply@sap-sync.local
|
|
|
|
# Default Admin User Configuration
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_EMAIL=admin@sap-sync.local
|
|
ADMIN_PASSWORD=Admin123!
|
|
|
|
# SAP Business One Configuration
|
|
APP__SAP__URL=https://sap-server:50000/b1s/v1
|
|
APP__SAP__COMPANY_DB=SBODemoDE
|
|
APP__SAP__USERNAME=manager
|
|
APP__SAP__PASSWORD=manager
|
|
|
|
# Plesk Configuration
|
|
APP__PLESK__URL=https://plesk-server:8443/api/v2
|
|
APP__PLESK__API_KEY=your-plesk-api-key-here |