revert: flake.lock matrix

This commit is contained in:
admin 2024-04-02 13:52:13 +02:00
parent cb0ddd5072
commit d413a5f2b1
2 changed files with 13 additions and 69 deletions

View file

@ -2,7 +2,6 @@
let
domain = "sondell.org";
matrixAdress = "m.${domain}";
hostName = "matrix";
fqdn = "${hostName}.${domain}";
baseUrl = "https://${fqdn}";
@ -53,8 +52,8 @@ services.postgresql = {
services.nginx.virtualHosts = {
${fqdn} = {
# enableACME = true;
# forceSSL = true;
enableACME = true;
forceSSL = true;
locations."/".extraConfig = ''
return 404;
'';
@ -65,21 +64,21 @@ services.postgresql = {
locations."/_synapse/client".proxyPass = "http://[::1]:8008";
};
${matrixAdress} = {
# enableACME = true;
# forceSSL = true;
${domain} = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8008";
};
# # This section is not needed if the server_name of matrix-synapse is equal to
# # the domain (i.e. example.org from @foo:example.org) and the federation port
# # is 8448.
# # Further reference can be found in the docs about delegation under
# # https://element-hq.github.io/synapse/latest/delegate.html
# This section is not needed if the server_name of matrix-synapse is equal to
# the domain (i.e. example.org from @foo:example.org) and the federation port
# is 8448.
# Further reference can be found in the docs about delegation under
# https://element-hq.github.io/synapse/latest/delegate.html
locations."= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig;
# # This is usually needed for homeserver discovery (from e.g. other Matrix clients).
# # Further reference can be found in the upstream docs at
# # https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient
# This is usually needed for homeserver discovery (from e.g. other Matrix clients).
# Further reference can be found in the upstream docs at
# https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient
locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig;
};
};