diff options
| author | 2019-09-27 17:51:02 +0100 | |
|---|---|---|
| committer | 2019-09-27 17:51:02 +0100 | |
| commit | b8404b90333d8a5fe2a7eee65eb8fa92e8bf6f43 (patch) | |
| tree | 9ebdaf9a4ba6a79918de33afcae5fe0fb353d78b | |
| parent | lightthpd: add proxy.forwarded for Host, add /dev/null docroot (diff) | |
| signature | ||
add per-httpd rest_api info
| -rw-r--r-- | docs/help/rest_api.md | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/docs/help/rest_api.md b/docs/help/rest_api.md index 6916f482..3843efb7 100644 --- a/docs/help/rest_api.md +++ b/docs/help/rest_api.md @@ -5,7 +5,20 @@ * `/msg <bot> reloadmodule rest_api` ### Configure HTTPd +Either set up a reverse proxy (with persisted Host header) with your favourite HTTPd or follow the instructions below. + #### Nginx * Copy example config file from [/docs/rest_api/nginx](/docs/rest_api/nginx) to `/etc/nginx/sites-enabled` * Edit `server-name`, `ssl_certificate` and `ssl_certificate_key` -* `service nginx restart` +* `$ service nginx restart` + +#### Apache2 +* Run `$ a2enmod ssl proxy proxy_http` as root +* Copy example config file from [/docs/rest_api/apache2](/docs/rest_api/apache2) to `/etc/apache2/sites-enabled/` +* Edit `ServerName`, `SSLCertificateFile and `SSLCertificateKeyFile` +* `$ service apache2 restart` + +#### Lighttpd +* Copy example config file from [/docs/rest_api/lighttpd](/docs/rest_api/lighttpd) to `/etc/lighttpd/lighttpd.conf` +* Edit `ssl.ca-file`, `ssl.pemfile` and `ssl.privkey` +* `$ service lighttpd restat` |
