mirror of
https://github.com/42wim/matterbridge.git
synced 2025-06-13 18:27:43 +02:00
Updated Mediaserver setup (markdown)
parent
fb8560abff
commit
34487cc640
33
Mediaserver-setup-[advanced].md
Normal file
33
Mediaserver-setup-[advanced].md
Normal file
@ -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/"
|
||||
}
|
||||
}
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user