2019-09-13 15:02:56 +00:00
|
|
|
## Configure REST API
|
|
|
|
|
|
|
|
### Enable REST API
|
|
|
|
* `/msg <bot> config bot rest-api on`
|
|
|
|
* `/msg <bot> reloadmodule rest_api`
|
|
|
|
|
|
|
|
### Configure HTTPd
|
|
|
|
#### Nginx
|
2019-09-13 15:06:14 +00:00
|
|
|
* Copy example config file from [/docs/rest_api/nginx](/docs/rest_api/nginx) to `/etc/nginx/sites-enabled`
|
2019-09-13 15:02:56 +00:00
|
|
|
* Edit `server-name`, `ssl_certificate` and `ssl_certificate_key`
|
|
|
|
* `service nginx restart`
|