feat: caddy test

This commit is contained in:
Nick 2024-12-19 22:55:10 -06:00
parent f4e269e6fd
commit 71ad4654d1

View file

@ -1,13 +1,14 @@
{instancesFunctions}: let {instancesFunctions}: let
inherit (instancesFunctions) domain1 servicePath sslPath sopsPath; inherit (instancesFunctions) domain3 servicePath sslPath sopsPath;
mastodonLabel = "Mastodon"; mastodonLabel = "Mastodon";
mastodonName = "mastodon"; mastodonName = "mastodon";
mastodonSubdomain = "social";
in { in {
label = mastodonLabel; label = mastodonLabel;
name = mastodonName; name = mastodonName;
email = { email = {
address0 = "thenutrivore@${domain1}"; address0 = "nick@${domain3}";
}; };
sops = { sops = {
path0 = "${sopsPath}/${mastodonName}"; path0 = "${sopsPath}/${mastodonName}";
@ -17,9 +18,9 @@ in {
path1 = ""; path1 = "";
path2 = ""; path2 = "";
}; };
subdomain = "social"; subdomain = mastodonSubdomain;
ssl = { ssl = {
cert = "${sslPath}/${domain1}/fullchain.pem"; cert = "${sslPath}/${mastodonSubdomain}.${domain3}/fullchain.pem";
key = "${sslPath}/${domain1}/key.pem"; key = "${sslPath}/${mastodonSubdomain}.${domain3}/key.pem";
}; };
} }