wait for the hosted zone to become resolvable

This commit is contained in:
TheWanderingCrow 2025-09-08 11:45:32 -04:00
parent eaf00456f0
commit 264cea6219
2 changed files with 20 additions and 2 deletions

View file

@ -133,6 +133,7 @@
"netbox.wanderingcrow.net" = {};
"notify.wanderingcrow.net" = {};
"logs.wanderingcrow.net" = {};
"psychal.link" = {};
# Sites I host for someone else
"swgalaxyproject.com" = {};
"nnsbluegrass.com" = {};

View file

@ -8,9 +8,11 @@
"${inputs.nixpkgs-unstable}/nixos/modules/services/matrix/tuwunel.nix"
];
sops.secrets."matrix/registration_token" = {};
sops.secrets."matrix/registration_token" = {
owner = "tuwunel";
};
services.matrix.tuwunel = {
services.matrix-tuwunel = {
enable = true;
package = pkgs.unstable.matrix-tuwunel;
stateDirectory = "tuwunel";
@ -29,4 +31,19 @@
};
};
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"psychal.link" = {
forceSSL = true;
useACMEHost = "psychal.link";
locations."/" = {
proxyPass = "http://unix:/run/tuwunel/tuwunel.sock";
proxyWebsockets = true;
};
};
};
};
}