Getting startedНачало работы

This walkthrough takes roughly ten minutes. You need: a domain, an origin server and an account at console.batoff.ru. Пошаговая инструкция занимает около десяти минут. Понадобится: домен, origin-сервер и аккаунт на console.batoff.ru.

1. Create a siteСоздайте сайт

Log in to the console and open Sites → New site. Enter the public hostname (for example www.example.com) and the origin — either an IP, a hostname, or a load balancer. В консоли откройте Sites → New site. Укажите публичный хост (например, www.example.com) и origin — IP, хост или балансировщик.

2. Update your DNSОбновите DNS

Point the public hostname at our edge with a CNAME: Направьте публичный хост на наш edge через CNAME:

www.example.com.   300   IN   CNAME   edge.batoff.ru.

If your DNS provider does not support CNAME at the apex, use an ALIAS/ANAME record or our anycast IP listed in the console. Если DNS-провайдер не даёт CNAME в apex — используйте ALIAS/ANAME или anycast-IP из консоли.

3. Verify originПроверьте origin

Once DNS has propagated, the console runs a synthetic probe every 30 seconds. You should see three green checks: TLS reachability, HTTP 200 on /, and a cacheable response for a sample asset. Until all three are green, we do not begin pulling real traffic. После распространения DNS консоль запускает зонд каждые 30 секунд. Должно зажечься три зелёных индикатора: доступность TLS, HTTP 200 на / и кэшируемый ответ на тестовый ассет. Пока не зелено — трафик не принимаем.

4. Turn on TLSВключите TLS

Certificates are issued via ACME against Let's Encrypt and ZeroSSL. We serve TLS 1.3 by default; TLS 1.2 is kept for compatibility with older mobile clients and can be disabled per site. Сертификаты выпускаются через ACME у Let's Encrypt и ZeroSSL. По умолчанию TLS 1.3; TLS 1.2 оставлен для старых мобильных клиентов и отключается на уровне сайта.

5. Sanity-check from the edgeПроверка с edge

$ curl -I https://www.example.com/
HTTP/2 200
server: batoff-edge
x-batoff-cache: HIT
x-batoff-pop: DME
age: 42
cache-control: public, max-age=3600

A HIT on the second request confirms the cache is working. If you see MISS every time, check the caching model — most often it is an uncacheable Cache-Control header from origin. Второй запрос должен вернуть HIT — значит кеш работает. Если всегда MISS, см. модель кеша: чаще всего виноват Cache-Control с origin.


Next:Дальше: Caching model →Модель кеша →