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: