php-censor/docs/en/plugins/xmpp.md

44 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2016-07-19 11:12:28 +02:00
Plugin XMPP
2017-01-04 13:22:20 +01:00
===========
2016-07-19 11:12:28 +02:00
Requirements
2017-01-04 13:22:20 +01:00
------------
2016-07-19 11:12:28 +02:00
2016-07-17 16:20:35 +02:00
- sendxmpp package
2016-07-19 11:12:28 +02:00
Installation
2017-01-04 13:22:20 +01:00
------------
2016-07-19 11:12:28 +02:00
2017-07-18 15:54:24 +02:00
1. On debian system (for example) use aptitude command to install `sendxmpp`
2016-07-21 19:02:11 +02:00
2. Add XMPP plugin in "complete" section of your `php-censor.yml`
2016-07-17 16:20:35 +02:00
2016-07-19 11:12:28 +02:00
Configuration
2017-01-04 13:22:20 +01:00
-------------
2016-07-19 11:12:28 +02:00
### Options
2017-07-18 15:54:24 +02:00
- username : Username of your XMPP sender account. (example : "login@server.com")
2016-07-17 16:20:35 +02:00
- password : Password of your XMPP sender account.
- recipients : List of your XMPP recipents account.
- server : If your server is not the same that your login server (optional, example : gtalk.google.com)
- tls : Set 1 to enable TLS connection or 0 to disable it. (optional, default is 0)
- alias : Alias of your sender account. (optional)
2017-07-18 15:54:24 +02:00
- date_format : `strftime` mask date format display in notification message. (optional, default is %c of strftime
function)
2016-07-17 16:20:35 +02:00
2016-07-19 11:12:28 +02:00
### Examples
2016-07-17 16:20:35 +02:00
```
complete:
xmpp:
username: "login@gmail.com"
password: "AZERTY123"
recipients:
- "recipient1@jabber.org"
- "recipient2@jabber.org"
server: "gtalk.google.com"
tls: 1
alias: "PHP Censor Notification"
2016-07-17 16:20:35 +02:00
date_format: "%d/%m/%Y"
```