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)', |
49 |
ConfigFileLocation => '/etc/meteord.conf', |
ConfigFileLocation => -e 'meteord.conf' ? 'meteord.conf' : '/etc/meteord.conf', |
50 |
|
|
51 |
'IP address for controller server (leave empty for all local addresses)', |
'IP address for controller server (leave empty for all local addresses)', |
52 |
ControllerIP => '', |
ControllerIP => '', |
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 => '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 => -e 'public_html' ? 'public_html' : '/usr/local/meteor/public_html', |
113 |
|
|
114 |
'Since Meteor is capable of serving static pages from a document root as well as streaming events to subscribers, this parameter is used to specify the URI at which the event server can be reached. If set to the root, Meteor will lose the ability to serve static pages.', |
'Since Meteor is capable of serving static pages from a document root as well as streaming events to subscribers, this parameter is used to specify the URI at which the event server can be reached. If set to the root, Meteor will lose the ability to serve static pages.', |
115 |
SubscriberDynamicPageAddress => '/push', |
SubscriberDynamicPageAddress => '/push', |
398 |
} |
} |
399 |
|
|
400 |
1; |
1; |
|
############################################################################EOF |
|
401 |
|
############################################################################EOF |