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

26 lines
664 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"];
allowed_uuids = ["db639f29-b7e7-431a-9c75-bcdcb87b6bdf"];
2025-01-14 14:10:35 +01:00
webserver = true;
};
};
services.nginx = {
virtualHosts = {
"molly.gladtherescake.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:4381";
};
};
};
};
}