|
| 1 | +# Configuring the comet.ini file |
| 2 | + |
| 3 | + * Parameters can be specified in any order. |
| 4 | + * Register is important |
| 5 | + * The comment begins with the `;` |
| 6 | + |
| 7 | +# Section [main] |
| 8 | + |
| 9 | +Password for access from cometQL |
| 10 | +```password = 0000000000000000000000000000000000000000000000000000000000000000``` |
| 11 | + |
| 12 | +The maximum size of the buffer in bytes for working with messages |
| 13 | +```buf_size = 10384``` |
| 14 | + |
| 15 | +Buffer size in bytes for storing fragmented messages |
| 16 | +```fragment_buf_size = 600``` |
| 17 | + |
| 18 | +The maximum size of the fragmented messages storage buffer |
| 19 | +```fragment_buf_max_size = 10384``` |
| 20 | + |
| 21 | +To output in a log queries coming through cometQL |
| 22 | +```useQueryLoger = false``` |
| 23 | + |
| 24 | +The maximum size of the buffer to respond to a request |
| 25 | +```answer_buf_size = 1000000``` |
| 26 | + |
| 27 | +The comet server can give out static files. By default, this feature is disabled. But if you set the parameter base_dir, then it starts to give files by name from this directory as a primitive http server. Supports only get requests. In the [content-type] section, you can set the extension to the content-type header |
| 28 | +```base_dir = /var/www/html``` |
| 29 | +# Section [statistics] |
| 30 | + |
| 31 | +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 ) |
| 32 | +To disable sending statistics, set the value to false |
| 33 | +```allow = true``` |
| 34 | + |
| 35 | +# Section [db] |
| 36 | +Connecting to mysql |
| 37 | +```host = localhost |
| 38 | +user = root |
| 39 | +password = root |
| 40 | +name = comet_db |
| 41 | +port = 3305``` |
| 42 | +
|
| 43 | +# Section [ws] |
| 44 | +ip address for receiving connections from websockets |
| 45 | +```ip = 0.0.0.0``` |
| 46 | +
|
| 47 | +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 |
| 48 | +```thread_num = 4``` |
| 49 | +
|
| 50 | +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 |
| 51 | +```statistics = 10``` |
| 52 | +
|
| 53 | +Port for listening to connections on websockets |
| 54 | +```port = 8087``` |
| 55 | +
|
| 56 | +The interval in seconds to check uptime for connections, 0 do not run the check |
| 57 | +```uptimeTestInterval = 600``` |
| 58 | +
|
| 59 | +The maximum uptime connection after which the connection is terminated forcibly |
| 60 | +```maxUptime = 0``` |
| 61 | +
|
| 62 | +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 |
| 63 | +```host = *``` |
| 64 | +
|
| 65 | +# Section [cometql] |
| 66 | +```ip = 0.0.0.0 |
| 67 | +thread_num = 3 ; number of threads for receive message from cometql |
| 68 | +statistics = 10 |
| 69 | +port = 3300 |
| 70 | +uptimeTestInterval = 600 |
| 71 | +maxUptime = 0 ``` |
| 72 | + |
| 73 | +# Section [content-type] |
| 74 | +
|
| 75 | +Allows you to set the content-type and file type. |
| 76 | +For example: |
| 77 | +```js = text/javascript |
| 78 | +css = text/css``` |
| 79 | +
|
| 80 | +# Section [log] |
| 81 | +Setting the Logging Level The higher the number the more logs are added. |
| 82 | + * 0 - do not output |
| 83 | + * 100 - Critical Errors |
| 84 | + * 200 errors |
| 85 | + * 300 - Warnings |
| 86 | + * 400 - log |
| 87 | + * 500 - debugging mode |
| 88 | +
|
| 89 | +The parameter sets the maximum level of logging common for all subsystems |
| 90 | +```level = 200; ``` |
| 91 | + |
| 92 | +Logging levels for individual subsystems, in order to be able to watch the log separately for different events, is used for debugging convenience |
| 93 | +```Any = 500``` |
| 94 | +
|
| 95 | +Events from class logger |
| 96 | +```TagLoger = 500``` |
| 97 | +
|
| 98 | +Class storage events |
| 99 | +```appConf = 500``` |
| 100 | +
|
| 101 | +Events from the interaction class via pipe (in the operating system) |
| 102 | +```pipeCommands = 500``` |
| 103 | +
|
| 104 | +Statistics module |
| 105 | +```statistics = 500``` |
| 106 | +
|
| 107 | +Disabling overtime connections |
| 108 | +```removeOldConnections = 500``` |
| 109 | +
|
| 110 | +Working with mysql |
| 111 | +```MySqlServer = 500``` |
| 112 | +
|
| 113 | +Class of work with user data (authorization, the last time online) |
| 114 | +```UserIndex = 500``` |
| 115 | +
|
| 116 | +User class (authorization, last online time) |
| 117 | +```UserItem = 500``` |
| 118 | +
|
| 119 | +Working with websockets |
| 120 | +```ClientServer = 500``` |
| 121 | +
|
| 122 | +Outdated section with php api |
| 123 | +```ServerServer = 500``` |
| 124 | +
|
| 125 | +Working with radishes (obsolete section) |
| 126 | +```SimpleRedisClient = 500``` |
| 127 | +
|
| 128 | +Reception and distribution of network connections |
| 129 | +```tcpServer = 500``` |
| 130 | +
|
| 131 | +Blanks of clustering are not all ready |
| 132 | +```CometQLCluster = 500``` |
| 133 | +
|
| 134 | +Working with authorization from cometql connections |
| 135 | +```devManager = 500``` |
| 136 | +
|
| 137 | +Sending requests to the mysql database |
| 138 | +```dbLink = 500``` |
| 139 | +
|
0 commit comments