git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/matrix-synapse: enable HTTPS in example (#109230)

The /.well-known endpoint must use HTTPS, see specification: https://matrix.org/docs/spec/server_server/latest#resolving-server-names.

commit76fad08473687bce7c46772a57d061ae70eec728 authorsephalon <me@sephalon.net> dateWed 13 Jan 2021, 22:20 (6 years ago) parent69dc4dc
1 file changed+3
nixos/modules/services/misc/matrix-synapse.xml+3
nixos/modules/services/misc/matrix-synapse.xml+3
@@ -69,6 +69,9 @@ in {
6969 # i.e. to delegate from the host being accessible as ${config.networking.domain}
7070 # to another host actually running the Matrix homeserver.
7171 "${config.networking.domain}" = {
72+ <link linkend="opt-services.nginx.virtualHosts._name_.enableACME">enableACME</link> = true;
73+ <link linkend="opt-services.nginx.virtualHosts._name_.forceSSL">forceSSL</link> = true;
74+
7275 <link linkend="opt-services.nginx.virtualHosts._name_.locations._name_.extraConfig">locations."= /.well-known/matrix/server".extraConfig</link> =
7376 let
7477 # use 443 instead of the default 8448 port to unite