enable mollysocket on queen
This commit is contained in:
parent
0e5714d6b4
commit
4f37f97cc2
3 changed files with 30 additions and 2 deletions
|
@ -13,5 +13,6 @@
|
|||
#./cinny
|
||||
#./firefox-sync
|
||||
./writefreely
|
||||
./mollysocket
|
||||
];
|
||||
}
|
||||
|
|
26
nixos/server/package-configs/mollysocket/default.nix
Normal file
26
nixos/server/package-configs/mollysocket/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue