Set up a custom domain for your Mobazha store and connect a Telegram Bot for your storefront Mini App.
If you deployed with the Docker standalone installer:
Option 1: Set domain during installation
curl -sSL https://get.mobazha.org/standalone | sudo bash -s -- --domain shop.example.com
Option 2: Add domain to an existing store
mobazha-ctl set-domain shop.example.com
The store automatically obtains a TLS certificate from Let's Encrypt.
Start (or restart) with the domain flag:
mobazha start --domain shop.example.com
At your domain registrar (Cloudflare, Namecheap, GoDaddy, etc.), create an A record:
| Type | Name | Value | TTL |
|---|---|---|---|
| ------ | ------ | ------- | ----- |
| A | shop (or @) | | Auto / 300 |
If using a subdomain like shop.example.com, the "Name" field should be shop.
If using the root domain example.com, the "Name" field should be @.
After DNS propagation:
# Check DNS resolution
dig +short shop.example.com
# Check HTTPS
curl -sI https://shop.example.com | head -5
Mobazha stores can be accessed as a Telegram Mini App via a Telegram Bot. This lets buyers browse and purchase directly inside Telegram.
/newbotmy_store_bot) — must end with botTell BotFather where your store frontend lives:
/mybots to BotFatherhttps://app.mobazha.org/tma?store=https://shop.example.com/tmaIn your store admin panel:
This enables:
Back in BotFather:
/mybots → select your botYour Telegram storefront is now live at:
https://t.me/<bot_username>
Share this link anywhere — buyers tap the menu button to open your Mini App store.
共 1 个版本