Some more matrix config tweaks

This commit is contained in:
Evie Litherland-Smith 2023-11-19 10:02:23 +00:00
parent 382ba548ea
commit 654536019e
2 changed files with 31 additions and 11 deletions

View file

@ -23,8 +23,8 @@ in {
# in client applications.
settings.public_baseurl = "https://${baseUrl}";
settings.listeners = [{
inherit port;
bind_addresses = [ "::1" ];
bind_addresses = [ "127.0.0.1" ];
port = 8008;
type = "http";
tls = false;
x_forwarded = true;
@ -34,15 +34,35 @@ in {
}];
}];
};
traefik.dynamicConfigOptions.http = {
routers.gitea = {
rule = "Host(`${baseUrl}`)";
entryPoints = [ "http" "https" ];
service = "synapse-service";
tls = { certResolver = "default"; };
traefik = {
staticConfigOptions.entryPoints.synapse-federation.address = ":8448";
dynamicConfigOptions.http = {
routers = {
synapse-service = {
rule = "Host(`matrix.xenia.me.uk`)";
entryPoints = [ "http" "https" ];
service = "synapse-service";
tls = { certResolver = "default"; };
};
synapse-federation-client = {
rule = "PathPrefix(`/.well-known/matrix/client)";
entryPoints = [ "synapse-federation" ];
service = "synapse-service";
tls = { certResolver = "default"; };
};
synapse-federation-server = {
rule = "PathPrefix(`/.well-known/matrix/server)";
entryPoints = [ "synapse-federation" ];
service = "synapse-service";
tls = { certResolver = "default"; };
};
};
services = {
synapse-service.loadBalancer.servers =
[{ url = "http://localhost:8008"; }];
};
};
services.synapse-service.loadBalancer.servers =
[{ url = "http://localhost:${port}"; }];
};
};
}

View file

@ -46,7 +46,7 @@
};
middlewares = {
auth.basicAuth.users =
[ "xenia:$apr1$LB0wVd6I$BHVPIyh.F5Ewt9/7PqAtS." ];
[ "evie:$apr1$LB0wVd6I$BHVPIyh.F5Ewt9/7PqAtS." ];
hsts.headers = {
stsSeconds = "31536000";
stsIncludeSubdomains = true;