enable mollysocket on queen

This commit is contained in:
Lillian Violet 2025-01-14 14:10:35 +01:00
parent 0e5714d6b4
commit 4f37f97cc2
3 changed files with 30 additions and 2 deletions

View file

@ -13,5 +13,6 @@
#./cinny
#./firefox-sync
./writefreely
./mollysocket
];
}

View file

@ -0,0 +1,26 @@
{config, ...}: {
sops.secrets."mollysocket-vapid-key".mode = "0440";
sops.secrets."mollysocket-vapid-key".owner = config.users.users.root.name;
services.mollysocket = {
enable = true;
settings = {
port = 4381;
vapid_key_file = config.sops.secrets."mollysocket-vapid-key".path;
allowed_endpoints = ["molly.gladtherescake.eu" "nextcloud.gladtherescake.eu"];
allowed_uuids = ["*"];
webserver = true;
};
};
services.nginx = {
virtualHosts = {
"molly.gladtherescake.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:4381";
};
};
};
};
}