From c69a1d3555ed1cac77c2312faf83d5a9a5aee69e Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 19 Dec 2024 22:42:18 -0600 Subject: [PATCH] feat: caddy test --- config/instances/config/mastodon.nix | 1 + nixos/modules/services/mastodon/default.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/instances/config/mastodon.nix b/config/instances/config/mastodon.nix index 71937a3..1846d79 100755 --- a/config/instances/config/mastodon.nix +++ b/config/instances/config/mastodon.nix @@ -17,6 +17,7 @@ in { path1 = ""; path2 = ""; }; + subdomain = "social"; ssl = { cert = "${sslPath}/${domain1}/fullchain.pem"; key = "${sslPath}/${domain1}/key.pem"; diff --git a/nixos/modules/services/mastodon/default.nix b/nixos/modules/services/mastodon/default.nix index eac2459..a00c814 100755 --- a/nixos/modules/services/mastodon/default.nix +++ b/nixos/modules/services/mastodon/default.nix @@ -8,7 +8,7 @@ inherit (flake.config.machines.devices) server; inherit (flake.config.services.instances) mastodon web; service = mastodon; - host = web.domains.url3; + host = "${mastodon.subdomain}.${web.domains.url3}"; localhost = web.localhost.address0; in { # If you need to start fresh for some reason, run these to create the new Admin account: