set fqdn
Some checks failed
Test Nix flake / Test nix flake (push) Has been cancelled

This commit is contained in:
XenGi 2026-11-02 19:23:45 +01:00
commit 08f8918085
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg

View file

@ -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;