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
Update Configuration authored Dec 09, 2025 by Mohammad Hanif Bin Maisin's avatar Mohammad Hanif Bin Maisin
Hide whitespace changes
Inline Side-by-side
Configuration.md
View page @ 03bcd392
......@@ -65,12 +65,41 @@ python -c "from database import init_db; init_db()"
## Server Registration
Register migration servers:
**Important:** Servers must be registered in the database (not just configured in `.env`).
The `.env` file contains server configuration (TEMP01_HOST, TEMP02_HOST, etc.), but these are used by legacy code. The main automation system uses servers from the database.
### Register Servers
1. Edit `utils/register_servers.py` with your server details:
- `server_name`: Server identifier (TEMP01, TEMP02, TEMP03)
- `host`: Server hostname
- `api_url`: Server API URL
- `api_key`: Server API key
- `gwme_path`: GWME installation path
- `pst_folder`: PST export folder path
- `max_batch_size`: Maximum users per batch
2. Run the registration script:
```bash
python utils/register_servers.py
```
This creates/updates server records in the `migration_servers` table.
### Verify Registered Servers
```bash
python -m db_utils servers
```
Or query directly:
```bash
python -m run_sql "SELECT * FROM migration_servers"
```
---
**See also:** [Operations](https://gitlab.digiheritage.com.my/hanif/automated-email-migration/-/wikis/Operations), [Deployment](https://gitlab.digiheritage.com.my/hanif/automated-email-migration/-/wikis/Deployment)
......
Clone repository
  • Architecture
  • Configuration
  • Deployment
  • Home
  • Operations
  • System Components
  • Troubleshooting
  • Workflow