NixOS-Config/nixos/server/package-configs/mollysocket/default.nix

26 lines
629 B
Nix
Raw Normal View History

{config, ...}: {
2025-01-14 14:10:35 +01:00
sops.secrets."mollysocket-vapid-key".mode = "0440";
services.mollysocket = {
enable = true;
environmentFile = config.sops.secrets."mollysocket-vapid-key".path;
2025-01-14 14:10:35 +01:00
settings = {
port = 4381;
2025-01-14 15:03:18 +01:00
allowed_endpoints = ["https://molly.gladtherescake.eu" "https://nextcloud.gladtherescake.eu"];
2025-01-14 14:10:35 +01:00
allowed_uuids = ["*"];
webserver = true;
};
};
services.nginx = {
virtualHosts = {
"molly.gladtherescake.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:4381";
};
};
};
};
}