Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A automated-email-migration
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mohammad Hanif Bin Maisin
  • automated-email-migration
  • Wiki
  • Configuration

Configuration · Changes

Page history
Create Configuration authored Dec 08, 2025 by Mohammad Hanif Bin Maisin's avatar Mohammad Hanif Bin Maisin
Hide whitespace changes
Inline Side-by-side
Configuration.md 0 → 100644
View page @ 5175a7ae
# Configuration
## Environment Variables
Configuration is managed through the `.env` file. Copy `env.template` to `.env` and configure:
### Bohrium API
```
BOHRIUM_API_URL=http://10.250.8.195:5001
MIGRATION_API_KEY=your-api-key-here
```
### Hafnium Server
```
HAFNIUM_HOST=hafnium
HAFNIUM_CRED_FILE=C:\gats\app\psFile\newgats-cred.txt
HAFNIUM_KEY_FILE=C:\gats\app\psFile\aes-newgats.key
HAFNIUM_SERVICE_USER=sabah.gov.my\snet.newgats
```
### Xenon Server
```
XENON_HOST=xenon
XENON_SERVICE_USER=sabah.gov.my\KKIPCScriptAdmin
```
### Scheduler Times
```
QUEUE_SYNC_HOUR=13
QUEUE_SYNC_MINUTE=0
PRE_MIGRATION_EMAIL_HOUR=13
PRE_MIGRATION_EMAIL_MINUTE=30
AD_GROUP_MANAGEMENT_HOUR=17
AD_GROUP_MANAGEMENT_MINUTE=30
MIGRATION_EXECUTION_HOUR=18
MIGRATION_EXECUTION_MINUTE=0
```
### Migration Settings
```
MIGRATION_TIMEOUT_MINUTES=60
MAX_CONCURRENT_MIGRATIONS=5
RETRY_FAILED_MIGRATIONS=True
MAX_RETRY_ATTEMPTS=3
```
### Test Modes
```
TEST_SCHEDULER_MODE=False
TEST_EMAIL_MODE=False
MONITORING_EMAIL=your-email@domain.com
```
## Database
The system uses SQLite database (`migration_queue.db`). Initialize with:
```bash
python -c "from database import init_db; init_db()"
```
## Server Registration
Register migration servers:
```bash
python utils/register_servers.py
```
---
**See also:** [Operations](Operations.md), [Deployment](Deployment.md)
Clone repository
  • Architecture
  • Configuration
  • Deployment
  • Home
  • Operations
  • System Components
  • Troubleshooting
  • Workflow