diff options
| author | Simeon Simeonov | 2014-05-13 14:44:56 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2014-05-13 14:44:56 +0200 |
| commit | 037059f2f7c2f0b095e2662d3beeb650af2b3444 (patch) | |
| tree | b0576c14d608c489dcc8ea8878cac2f10fc75628 | |
| parent | 23db22255f17c41aabb3357cdf2437a5c16cfdc0 (diff) | |
Documentation process started
| -rw-r--r-- | beinc_config_sample.json (renamed from beinc_config.json) | 0 | ||||
| -rw-r--r-- | beinc_config_sample.json.readme | 76 |
2 files changed, 76 insertions, 0 deletions
diff --git a/beinc_config.json b/beinc_config_sample.json index e200689..e200689 100644 --- a/beinc_config.json +++ b/beinc_config_sample.json | |||
diff --git a/beinc_config_sample.json.readme b/beinc_config_sample.json.readme new file mode 100644 index 0000000..7cfe23b --- /dev/null +++ b/beinc_config_sample.json.readme | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | N.B. This file is not a legitimate .json file!! | ||
| 2 | You should use beinc_config_sample.json as a base config file for your setup | ||
| 3 | |||
| 4 | Since the JSON format doesn't offer support for comments, this file is only used | ||
| 5 | to illustrate the BEINC config format and describe all available options. | ||
| 6 | |||
| 7 | Unless specified otherwise, the values assigned to the given options are their | ||
| 8 | default values. | ||
| 9 | |||
| 10 | Although the #-character is not a legal JSON comment, it is used in this | ||
| 11 | documentation to better illustrate the comments. | ||
| 12 | |||
| 13 | |||
| 14 | { | ||
| 15 | "server": { # This whole section is used by the server only. | ||
| 16 | # It is only used by beinc_server.py and ignore by all other | ||
| 17 | # components | ||
| 18 | |||
| 19 | "general": { # Applies to the whole server (cherrypy) For more info: | ||
| 20 | # http://docs.cherrypy.org/en/latest/refman/_cpserver.html | ||
| 21 | |||
| 22 | # The name of a registered SSL adaptation module | ||
| 23 | "ssl_module": "pyopenssl", | ||
| 24 | |||
| 25 | # The filename of the private key to use with SSL. | ||
| 26 | "ssl_private_key": "/home/user/keys/key.pem", # default: None | ||
| 27 | |||
| 28 | # The filename of the SSL certificate to use | ||
| 29 | "ssl_certificate": "/home/user/certs/cert.crt" # default: None | ||
| 30 | }, | ||
| 31 | "instances": [ | ||
| 32 | { | ||
| 33 | "name": "test", | ||
| 34 | "password": "changeme", | ||
| 35 | "osd_system": "pynotify", | ||
| 36 | "osd_timeout": 5, | ||
| 37 | "pyosd_font": "", | ||
| 38 | "pyosd_vertical_offset": 120, | ||
| 39 | "pyosd_horizontal_offset": 30, | ||
| 40 | "pyosd_align": "left", | ||
| 41 | "pyosd_position": "bottom", | ||
| 42 | "pyosd_color": "blue", | ||
| 43 | "queue_size": 4 | ||
| 44 | } | ||
| 45 | ] | ||
| 46 | }, | ||
| 47 | "irc_client": { | ||
| 48 | "use_current_buffer": 0, | ||
| 49 | "targets": [ | ||
| 50 | { | ||
| 51 | "name": "weechat_main", | ||
| 52 | "target_url": "https://10.0.0.2:9898/push/secondtest", | ||
| 53 | "target_password": "changeme", | ||
| 54 | "target_cert_file": "", | ||
| 55 | "target_timestamp_format": "%H:%M:%S", | ||
| 56 | "pm_title_template": "%s @ %S", | ||
| 57 | "pm_message_template": "%m", | ||
| 58 | "cm_title_template": "%c @ %S", | ||
| 59 | "cm_message_template": "%s -> %m", | ||
| 60 | "nm_title_template": "%c @ %S", | ||
| 61 | "nm_message_template": "%s -> %m", | ||
| 62 | "channel_list": ["RedpillLinpro.#python", | ||
| 63 | "Exile.#test", | ||
| 64 | "RedpillLinpro.#adult", | ||
| 65 | "Exile.#pichove"], | ||
| 66 | "nick_list": ["Exile.Blackmore"], | ||
| 67 | "channel_messages_policy": 2, | ||
| 68 | "private_messages_policy": 1, | ||
| 69 | "notifications_policy": 1, | ||
| 70 | "debug": 1, | ||
| 71 | "enabled": 1 | ||
| 72 | } | ||
| 73 | ] | ||
| 74 | }, | ||
| 75 | "config_version": 1 | ||
| 76 | } | ||
