This commit is contained in:
parent
242ab154e9
commit
08f8918085
1 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
{ config, ... }:
|
||||
|
||||
let
|
||||
fqdn = "matrix.${config.networking.domain}";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../../services/nginx.nix
|
||||
|
|
@ -11,7 +14,7 @@
|
|||
enable = true;
|
||||
settings = {
|
||||
server_name = config.networking.domain;
|
||||
public_baseurl = "https://matrix.${config.networking.domain}:443/";
|
||||
public_baseurl = "https://${fqdn}:443/";
|
||||
# "/var/lib/matrix-synapse/homeserver.signing.key"
|
||||
signing_key_path = config.age.secrets.matrix_signing_key.path;
|
||||
registration_shared_secret_path = config.age.secrets.matrix_registration_shared_secret.path;
|
||||
|
|
@ -67,7 +70,7 @@
|
|||
enableRegistrationScript = true;
|
||||
};
|
||||
|
||||
nginx.virtualHosts."matrix.${config.networking.domain}" = {
|
||||
nginx.virtualHosts.${fqdn} = {
|
||||
default = true;
|
||||
quic = true;
|
||||
kTLS = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue