Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 8 Следующий »

Ниже приведён пример общего конфига, а в последующих разделах раскрываются примеры конфигурации каждого из разделов.

Значком 💲 обозначены платные услуги. Стоимость можно уточнить у менеджера.

        http resource json object (HRJO) - data from request/response
        HRJO structure and keys:
        { 
            id <string> - uid of resource (used in api url)
            name <string> - identificator for web UI (required)
            origin <json> - section for traffic origin description (required)
            certificate <integer> - id of created certificate
            names <json> - section for names description
            robots <json> - section for robots file description
            headers <json> - section for specific headers description
            cache <json> - section for cache options description
            client_cache <json> - section for extra cache options description
            auth <json> - 💲 section for auth options description
            cors <json> - section for cors description
            limitations <json> - 💲 section for geo, ip, referer or useragent limitations
            modern_tls_only <boolean> - use only modern versions of TLS
            strong_ssl_ciphers <boolean> - use strong SSL ciphers (required modern_tls_only)
            locations <json> - section for locations description
            compress <json> - 💲 section for compress options description
            ioss <boolean> - 💲 section for ioss options description
            packaging <json> - section for packaging options description
            tuning <string> - distribution optimization type (one of "default", "large" (for large files > 20 Mbytes), "live" (for HTTP LIVE streams))
            slice_size_megabytes <integer> - size of slice in MB (only for tuning="large")
        }  
origin section
        {
            https <boolean> - use or not https during requests to origin
            ssl_verify <boolean> - check or not certificate during requests to origin (required https)
            s3_bucket <string> - permitted bucket, set when specifying S3-domain
            aws <json> - use aws authorization during requests to origin
            hostname <string> - set host header during requests to origin
            servers <json> - client nodes description
            read_timeout <string> - time in seconds, e.g. "10s"
            send_timeout <string> - time in seconds, e.g. "10s"
            connect_timeout <string> - time in seconds, e.g. "10s"
        }
aws section
        {
            auth <json> - authorization keys
        }
aws auth section
        {
            access_key <string> - access key
            secret_key <string> - secret key
        }
servers section
        {
            <client_domain/ip_address>: client node address <json>
        }
client node address section
        {
            port <integer> - client node port (default 80 and 443)
            weight <integer> - load balancing parameters
            max_fails <integer> - load balancing parameters
            backup <boolean> - use node only in backup mode
        }
names section
        list of string cnames, f.e. ["alias1.client.cdn.ru"]
robots section
        {
            type <string> - "deny", "custom" or "cached"
            robotsContent <string> - client’s robots.txt text (only for "custom" type)
        }
headers section
        {
            request <json> - headers for requests to origin
            response <json> - header for customer responses
        }
request headers section
        {
            <header_name>: <header_value>
        }
response headers section
        {
            <header_name>: <header_value>
        }
  • Нет меток