Skip to content
Snippets Groups Projects
Commit 473c53a3 authored by Travis Ralston's avatar Travis Ralston
Browse files

Misc updates

parent 1fef0e0e
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/bin /bin
/pkg /pkg
media-repo.yaml
vendor/pkg vendor/pkg
vendor/src vendor/src
......
# matrix-media-repo # matrix-media-repo
A domain-aware media repository for matrix A host-aware media repository for Matrix. Designed for environments with multiple homeservers.
Talk about it in [#media-repo:t2bot.io](https://matrix.to/#/#media-repo:t2bot.io).
# Installing # Installing
......
# NOT YET IMPLEMENTED
homeservers:
allowed:
- t2bot.io
- t2l.io
# NOT YET IMPLEMENTED
database:
# Currently only "postgres" is supported.
postgres: "postgres://mediarepo:yourpassword@localhost/media-repository?sslmode=disable"
uploads:
# A location will be picked based upon estimated folder size
# DISTRIBUTION NOT YET IMPLEMENTED
storagePaths:
- /var/matrix/media
maxBytes: 10485760 # 10MB default, 0 to disable
# NOT YET IMPLEMENTED
thumbails:
dynamic: false
sizes:
- width: 32
height: 32
method: crop
- width: 96
height: 96
method: crop
- width: 320
height: 240
method: scale
- width: 640
height: 480
method: scale
- width: 800
height: 600
method: scale
\ No newline at end of file
...@@ -25,5 +25,5 @@ func DownloadMedia(w http.ResponseWriter, r *http.Request) { ...@@ -25,5 +25,5 @@ func DownloadMedia(w http.ResponseWriter, r *http.Request) {
filename = "testasdasdasd.jpg" filename = "testasdasdasd.jpg"
} }
io.WriteString(w, "Server = " + server + "; mediaId = " + mediaId +"; filename = " + filename) io.WriteString(w, "Server = "+server+"; mediaId = "+mediaId+"; filename = "+filename+"; Host = "+r.Host)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment