Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
en:comet:ini-file [2017/08/26 11:05] levhav created |
en:comet:ini-file [2019/12/18 02:05] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <rst>RU::004-Administration::005-Configuring the comet.ini file</rst> | + | <rst>EN::004-Administration::005-Configuring the comet.ini file</rst> |
| + | <rst>Header: file comet.ini</rst> | ||
| ====== Configuring the comet.ini file ====== | ====== Configuring the comet.ini file ====== | ||
| Line 9: | Line 10: | ||
| ====== Section [main] ====== | ====== Section [main] ====== | ||
| - | Password for access from cometQL | + | Password for access from cometQL, this parameter is synonym for dev_key from saas version. |
| <code>password = 0000000000000000000000000000000000000000000000000000000000000000</code> | <code>password = 0000000000000000000000000000000000000000000000000000000000000000</code> | ||
| Line 31: | Line 32: | ||
| ====== Section [statistics] ====== | ====== Section [statistics] ====== | ||
| - | В комет сервере есть механизм сбор статистики использования и отправки на сервер разработчика ( Для чего и какие данные отправляет смотрите здесь http://statistics.comet-server.ru/api/statistics ) | + | In the comet server, there is a mechanism to collect usage statistics and send them to the developer server (For what and what data is sent, see http://statistics.comet-server.ru/api/statistics ) |
| - | Чтоб отключить отправку статистики надо выставить значение 0 | + | To disable sending statistics, set the value to false |
| - | <code>interval = 24</code> | + | <code>allow = true</code> |
| ====== Section [db] ====== | ====== Section [db] ====== | ||
| - | Подключение к бд mysql | + | Connecting to mysql |
| <code>host = localhost | <code>host = localhost | ||
| user = root | user = root | ||
| Line 44: | Line 45: | ||
| ====== Section [ws] ====== | ====== Section [ws] ====== | ||
| - | ip адрес для приёма соединений с вебсокетов | + | ip address for receiving connections from websockets |
| <code>ip = 0.0.0.0</code> | <code>ip = 0.0.0.0</code> | ||
| - | Количество потоков в которые обрабатываются соединения с вебсокетов, каждый поток увеличивает общее потребление памяти примерно 10 - 15 мб так что для малонагруженной конфигурации можно казывать 1 поток | + | The number of streams into which connections from Web sites are processed, each thread increases the total memory consumption by approximately 10 - 15 mb so that for a low-loaded configuration one can call 1 stream |
| <code>thread_num = 4</code> | <code>thread_num = 4</code> | ||
| - | Комет сервер учитывает количество соединений онлайн и количество сетевых событий, это интервал в секундах между замерами значение 0 не замерять | + | The comet server takes into account the number of online connections and the number of network events, it is the interval in seconds between the measurements that the value 0 does not measure |
| <code>statistics = 10</code> | <code>statistics = 10</code> | ||
| - | Порт для прослушивания подключений по вебсокетам | + | Port for listening to connections on websockets |
| <code>port = 8087</code> | <code>port = 8087</code> | ||
| - | Интервал в секундах для проверки uptime у подключений, 0 не запускать проверку | + | The interval in seconds to check uptime for connections, 0 do not run the check |
| <code>uptimeTestInterval = 600</code> | <code>uptimeTestInterval = 600</code> | ||
| - | Максимальный uptime подключения после которого соединение разрывается принудительно | + | The maximum uptime connection after which the connection is terminated forcibly |
| <code>maxUptime = 0</code> | <code>maxUptime = 0</code> | ||
| - | Список хостов через запятую с которых разрешено подключатся из javascript api (проверяется на основе http заголовка ) по умолчанию ограничения нет | + | A comma-separated list of hosts from which it is allowed to connect from javascript api (checked based on the http header), there is no limit by default |
| <code>host = *</code> | <code>host = *</code> | ||
| Line 75: | Line 76: | ||
| ====== Section [content-type] ====== | ====== Section [content-type] ====== | ||
| - | Позволяет задать соответсвие content-type и типа файла. | + | Allows you to set the content-type and file type. |
| - | + | For example: | |
| - | на пример так: | + | |
| <code>js = text/javascript | <code>js = text/javascript | ||
| css = text/css</code> | css = text/css</code> | ||
| ====== Section [log] ====== | ====== Section [log] ====== | ||
| - | Настройка уровня логирования чем выше число тем больше логов сыпится. | + | Setting the Logging Level The higher the number the more logs are added. |
| - | * 0 - не выводить | + | |
| - | * 100 - критические ошибки | + | * 0 - do not output |
| - | * 200 - ошибки | + | * 100 - Critical Errors |
| - | * 300 - предупреждения | + | * 200 errors |
| - | * 400 - лог | + | * 300 - Warnings |
| - | * 500 - режим отладки | + | * 400 - log |
| + | * 500 - debugging mode | ||
| - | Параметр выставляет общий для всех подсистем максимальный уровень логирования | + | The parameter sets the maximum level of logging common for all subsystems |
| <code>level = 200; </code> | <code>level = 200; </code> | ||
| - | Уровни логирования для отдельных подсистем для того чтоб было можно смотреть лог по отдельности для разных событий используется для удобства отладки | + | Logging levels for individual subsystems, in order to be able to watch the log separately for different events, is used for debugging convenience |
| <code>Any = 500</code> | <code>Any = 500</code> | ||
| - | События от класса логера | + | Events from class logger |
| <code>TagLoger = 500</code> | <code>TagLoger = 500</code> | ||
| - | События класса хранения настроек | + | Class storage events |
| <code>appConf = 500</code> | <code>appConf = 500</code> | ||
| - | События от класса взаимодействия через pipe (в операционной системе) | + | Events from the interaction class via pipe (in the operating system) |
| <code>pipeCommands = 500</code> | <code>pipeCommands = 500</code> | ||
| - | Модуль сбора статистики | + | Statistics module |
| <code>statistics = 500</code> | <code>statistics = 500</code> | ||
| - | Отключение соединений по превышению uptime | + | Disabling overtime connections |
| <code>removeOldConnections = 500</code> | <code>removeOldConnections = 500</code> | ||
| - | Работа с mysql | + | Working with mysql |
| <code>MySqlServer = 500</code> | <code>MySqlServer = 500</code> | ||
| - | Класс работы с данными пользователей (авторизация, время последнего онлайна) | + | Class of work with user data (authorization, the last time online) |
| <code>UserIndex = 500</code> | <code>UserIndex = 500</code> | ||
| - | Класс пользователя (авторизация, время последнего онлайна) | + | User class (authorization, last online time) |
| <code>UserItem = 500</code> | <code>UserItem = 500</code> | ||
| - | Работа с вебсокетами | + | Working with websockets |
| <code>ClientServer = 500</code> | <code>ClientServer = 500</code> | ||
| - | Устаревшая секция работы с php api | + | Outdated section with php api |
| <code>ServerServer = 500</code> | <code>ServerServer = 500</code> | ||
| - | Работа с редис (устаревшая секция) | + | Working with radishes (obsolete section) |
| <code>SimpleRedisClient = 500</code> | <code>SimpleRedisClient = 500</code> | ||
| - | Приём и распределение сетевых соединений | + | Reception and distribution of network connections |
| <code>tcpServer = 500</code> | <code>tcpServer = 500</code> | ||
| - | Заготовки кластеризапции ещё не всё готово | + | Blanks of clustering are not all ready |
| <code>CometQLCluster = 500</code> | <code>CometQLCluster = 500</code> | ||
| - | Работа с авторизацией от cometql подключений | + | Working with authorization from cometql connections |
| <code>devManager = 500</code> | <code>devManager = 500</code> | ||
| - | Отправка запросов к бд mysql | + | Sending requests to the mysql database |
| <code>dbLink = 500</code> | <code>dbLink = 500</code> | ||