Skip to Content
InfrastructureDomains & DNS

Domains & DNS Configuration

All domain and DNS management is handled via Terraform with Cloudflare.


Domain Overview

Production Domain

battlesbit.com - Primary production domain

RecordTypeValuePurpose
@CNAMElanding.pages.devLanding page
@MXmx1.hostinger.comEmail (primary)
@MXmx2.hostinger.comEmail (backup)
@TXTv=spf1…SPF record
_dmarcTXTv=DMARC1…DMARC policy
hostingermail-*CNAME*.dkim.mail.hostinger.comDKIM

Development Domain

battlesbit.ir - Development environment

SubdomainTypeTargetPurpose
@AHostinger IPRoot redirect
service-devASindad IPBackend API
admin-devCNAMEPagesAdmin panel
pwa-devCNAMEPagesMobile PWA
docs-devCNAMEPagesDocumentation
argocd-devASindad IPArgoCD
grafana-devASindad IPMonitoring
rancher-devASindad IPKubernetes
helpdesk-devASindad IPSupport

Dev Services Domain

battlesbit.xyz - Developer tools (legacy)

SubdomainPurpose
argocd-devGitOps CD
grafana-devMonitoring
rancher-devKubernetes management
service-devBackend API
helpdesk-devSupport system

Redirect Domains

These domains redirect to battlesbit.com:

DomainStatus
battlesbit.co301 → .com
battlesbit.net301 → .com
battlesbit.org301 → .com
battlesbit.store301 → .com
battlesbit.xyz301 → .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:

RecordTypePriorityValue
MXmx1.hostinger.com5Primary
MXmx2.hostinger.com10Backup
SPFTXT-v=spf1 include:_spf.mail.hostinger.com ~all
DMARCTXT-v=DMARC1; p=none
DKIMCNAME-hostingermail-*.dkim.mail.hostinger.com

URL Structure

Production

URLService
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

URLService
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