42 |
use strict; |
use strict; |
43 |
|
|
44 |
our @DEFAULTS=( |
our @DEFAULTS=( |
45 |
'Template for each line in channelinfo', |
'Template for each line in channelinfo. Placeholders are name, lastMsgID, subscriberCount, messageCount. Channel info is included in output when client does not give a message start index in its request (indicating it is the client\'s first request for that channel)', |
46 |
ChannelInfoTemplate => '<script>ch("~name~", ~lastMsgID~);</script>\r\n', |
ChannelInfoTemplate => '<script>ch("~name~", ~lastMsgID~);</script>\r\n', |
47 |
|
|
48 |
'Configuration file location on disk (if any)', |
'Configuration file location on disk (if any)', |
61 |
Debug => 0, |
Debug => 0, |
62 |
|
|
63 |
'Name of index file to serve when a directory is requested from the static file web server', |
'Name of index file to serve when a directory is requested from the static file web server', |
64 |
DirectoryIndex => 'index.html', |
DirectoryIndex => 'index.html', |
65 |
|
|
66 |
|
'Footer template', |
67 |
|
FooterTemplate => '</body></html>', |
68 |
|
|
69 |
'Header template, ~server~, ~servertime~ and ~status~ will be replaced by the appropriate values.', |
'Header template, ~server~, ~servertime~ and ~status~ will be replaced by the appropriate values.', |
70 |
HeaderTemplate => 'HTTP/1.1 ~status~\r\nServer: ~server~\r\nContent-Type: text/html; charset=utf-8\r\nPragma: no-cache\r\nCache-Control: no-cache, no-store, must-revalidate\r\nExpires: Thu, 1 Jan 1970 00:00:00 GMT\r\n\r\n', |
HeaderTemplate => 'HTTP/1.1 ~status~\r\n\r\n~channelinfo~\r\n', |
71 |
|
|
72 |
'Print out this help message', |
'Print out this help message', |
73 |
Help => '', |
Help => '', |
74 |
|
|
75 |
'Format to use for timestamps in syslog: unix or human', |
'Format to use for timestamps in debug output: unix or human', |
76 |
LogTimeFormat => 'human', |
LogTimeFormat => 'human', |
77 |
|
|
78 |
'Maximum age of a message in seconds', |
'Maximum age of a message in seconds', |
79 |
MaxMessageAge => 7200, |
MaxMessageAge => 7200, |
80 |
|
|
81 |
'Maximum number of messages to send to a subscriber before forcing their connection to close. Use 0 to disable', |
'Whether to close subscriber connections once at least one message has been sent, and there are no further messages pending. 1 to enable, 0 to disable. Irrelevant unless Persist is set to 1.', |
82 |
MaxMessages => 0, |
CloseOnEvent => 0, |
83 |
|
|
84 |
'Maximum number of stored messages per channel', |
'Maximum number of stored messages per channel', |
85 |
MaxMessagesPerChannel => 250, |
MaxMessagesPerChannel => 250, |
106 |
SubscriberPort => 4670, |
SubscriberPort => 4670, |
107 |
|
|
108 |
'Subscriber Shutdown message, sent when the subscriber server shuts down (leave empty for no message)', |
'Subscriber Shutdown message, sent when the subscriber server shuts down (leave empty for no message)', |
109 |
SubscriberShutdownMsg => '<script>eof();</script>\r\n', |
SubscriberShutdownMsg => '<script>eof();</script>\r\n', |
110 |
|
|
111 |
'An absolute filesystem path, to be used as the document root for Meteor\'s static file web server. If left empty, no documents will be served.', |
'An absolute filesystem path, to be used as the document root for Meteor\'s static file web server. If left empty, no documents will be served.', |
112 |
SubscriberDocumentRoot => '/usr/local/meteor/public_html', |
SubscriberDocumentRoot => '/usr/local/meteor/public_html', |