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