Merge pull request #553 from DarkKirb/fix-matrix-media-repo

actually fix matrix media repo
This commit is contained in:
Charlotte 🦝 Delenk 2024-10-01 22:58:16 +02:00 committed by GitHub
commit b52179fa5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,12 +15,7 @@
database.postgres = "postgresql:///matrix_media_repo?sslmode=disable&host=/run/postgresql";
homeservers = [
{
name = "matrix.chir.rs";
csApi = "https://matrix.chir.rs";
signingKeyPath = config.sops.secrets."services/matrix-media-repo/signing.key".path;
}
{
name = "matrix.int.chir.rs";
name = "chir.rs";
csApi = "https://matrix.chir.rs";
signingKeyPath = config.sops.secrets."services/matrix-media-repo/signing.key".path;
}
@ -148,19 +143,33 @@ in {
reverse_proxy http://localhost:8008 {
header_down Access-Control-Allow-Origin *
header_down Access-Control-Allow-Headers *
header_up Host chir.rs
header_up X-Forwarded-Host chir.rs
}
}
handle /_matrix/client/v3/logout/* {
reverse_proxy http://localhost:8008
reverse_proxy {
to http://localhost:8008
header_up Host chir.rs
header_up X-Forwarded-Host chir.rs
}
}
handle /_matrix/client/v1/media/* {
reverse_proxy http://localhost:8008
reverse_proxy {
to http://localhost:8008
header_up Host chir.rs
header_up X-Forwarded-Host chir.rs
}
}
handle /_matrix/federation/v1/media/* {
reverse_proxy http://localhost:8008
reverse_proxy {
to http://localhost:8008
header_up Host chir.rs
header_up X-Forwarded-Host chir.rs
}
}
handle /_matrix/* {