Updated Mediaserver setup (markdown)

Wim 2017-11-24 22:21:21 +01:00
parent fb8560abff
commit 34487cc640
2 changed files with 33 additions and 17 deletions

@ -0,0 +1,33 @@
# Caddy
Matterbridge is not going to implement it's own "mediaserver" instead we make use of other tools that are good at this sort of stuff. In this case we're using caddy for upload/downloading media.
Caddy has automatic https support, so I'm going to describe this for https only.
This mediaserver will be used to upload media to services that don't have support for uploading images/video/files.
At this moment this is xmpp and gitter
## caddy install / configuration
Go to https://caddyserver.com/download
Enable `http.upload` as plugin
Make sure the process you're running caddy with has read/write access to `/var/www/upload/`
Sample Caddyfile
```
yourserver.com:443 {
log stdout
root /var/www/upload/
browse
basicauth /web/upload a_user a_password
upload /upload {
to "/var/www/upload/"
}
}
```
## matterbridge configuration
configuration needs to happen in `[general]`
```
[general]
MediaServerUpload="https://a_user:a_password@yourserver.com/upload"
MediaServerDownload="https://yourserver.com/"
```

@ -1,17 +0,0 @@
Go to https://caddyserver.com/download
Enable `http.upload` as plugin
Make sure the process you're running caddy with has read/write access to `/var/www/upload/`
Sample Caddyfile
```
yourserver.com:443 {
log stdout
root /var/www/upload/
browse
basicauth /web/upload a_user a_password
upload /upload {
to "/var/www/upload/"
}
}
```