Domains & DNS Configuration
All domain and DNS management is handled via Terraform with Cloudflare.
Domain Overview
Production Domain
battlesbit.com - Primary production domain
| Record | Type | Value | Purpose |
|---|---|---|---|
| @ | CNAME | landing.pages.dev | Landing page |
| @ | MX | mx1.hostinger.com | Email (primary) |
| @ | MX | mx2.hostinger.com | Email (backup) |
| @ | TXT | v=spf1… | SPF record |
| _dmarc | TXT | v=DMARC1… | DMARC policy |
| hostingermail-* | CNAME | *.dkim.mail.hostinger.com | DKIM |
Development Domain
battlesbit.ir - Development environment
| Subdomain | Type | Target | Purpose |
|---|---|---|---|
| @ | A | Hostinger IP | Root redirect |
| service-dev | A | Sindad IP | Backend API |
| admin-dev | CNAME | Pages | Admin panel |
| pwa-dev | CNAME | Pages | Mobile PWA |
| docs-dev | CNAME | Pages | Documentation |
| argocd-dev | A | Sindad IP | ArgoCD |
| grafana-dev | A | Sindad IP | Monitoring |
| rancher-dev | A | Sindad IP | Kubernetes |
| helpdesk-dev | A | Sindad IP | Support |
Dev Services Domain
battlesbit.xyz - Developer tools (legacy)
| Subdomain | Purpose |
|---|---|
| argocd-dev | GitOps CD |
| grafana-dev | Monitoring |
| rancher-dev | Kubernetes management |
| service-dev | Backend API |
| helpdesk-dev | Support system |
Redirect Domains
These domains redirect to battlesbit.com:
| Domain | Status |
|---|---|
| battlesbit.co | 301 → .com |
| battlesbit.net | 301 → .com |
| battlesbit.org | 301 → .com |
| battlesbit.store | 301 → .com |
| battlesbit.xyz | 301 → .com |
Cloudflare Pages
Landing Page
resource "cloudflare_pages_project" "landing_pages" {
name = "battlesbit-landing"
production_branch = "main"
source {
type = "github"
config {
owner = "battlesbit"
repo_name = "landing"
}
}
}Domain: battlesbit.com
Mobile PWA
resource "cloudflare_pages_project" "pwa_pages" {
name = "battlesbit"
production_branch = "main"
source {
type = "github"
config {
owner = "battlesbit"
repo_name = "public"
}
}
}Domain: pwa-dev.battlesbit.ir
Admin Panel
resource "cloudflare_pages_project" "admin_pages" {
name = "battlesbit-admin"
production_branch = "main"
source {
type = "github"
config {
owner = "battlesbit"
repo_name = "admin"
}
}
}Domain: admin-dev.battlesbit.ir
Documentation
resource "cloudflare_pages_project" "docs_pages" {
name = "battlesbit-docs"
production_branch = "main"
source {
type = "github"
config {
owner = "battlesbit"
repo_name = "docs"
}
}
}Domain: docs-dev.battlesbit.ir
Email Configuration
Email is hosted on Hostinger for battlesbit.com:
| Record | Type | Priority | Value |
|---|---|---|---|
| MX | mx1.hostinger.com | 5 | Primary |
| MX | mx2.hostinger.com | 10 | Backup |
| SPF | TXT | - | v=spf1 include:_spf.mail.hostinger.com ~all |
| DMARC | TXT | - | v=DMARC1; p=none |
| DKIM | CNAME | - | hostingermail-*.dkim.mail.hostinger.com |
URL Structure
Production
| URL | Service |
|---|---|
| https://battlesbit.com | Landing page |
| https://app.battlesbit.com | Mobile PWA (future) |
| https://admin.battlesbit.com | Admin panel (future) |
| https://docs.battlesbit.com | Documentation (future) |
| https://api.battlesbit.com | Backend API (future) |
Development
| URL | Service |
|---|---|
| https://pwa-dev.battlesbit.ir | Mobile PWA |
| https://admin-dev.battlesbit.ir | Admin panel |
| https://docs-dev.battlesbit.ir | Documentation |
| https://service-dev.battlesbit.ir | Backend API |
| https://argocd-dev.battlesbit.ir | ArgoCD |
| https://grafana-dev.battlesbit.ir | Grafana |
| https://rancher-dev.battlesbit.ir | Rancher |
Last updated on