Drop mollysocket support

This commit is contained in:
Victor Mignot 2024-12-01 14:05:30 +01:00
parent 58ef8107a7
commit bb56bb0074
No known key found for this signature in database
GPG key ID: 5E7F2CE1BEAFED3D
3 changed files with 0 additions and 43 deletions

View file

@ -53,7 +53,6 @@
}; };
}; };
my.server.mollysocket.enable = true;
my.server.blog.enable = true; my.server.blog.enable = true;
my.server.papermc.enable = true; my.server.papermc.enable = true;

View file

@ -3,7 +3,6 @@
../common ../common
./network.nix ./network.nix
./nginx.nix ./nginx.nix
./mollysocket.nix
./blog.nix ./blog.nix
./minecraft.nix ./minecraft.nix
]; ];

View file

@ -1,41 +0,0 @@
{
lib,
config,
extraInfo,
...
}:
let
msConfig = config.services.mollysocket.settings;
in
with lib;
{
options.my.server.mollysocket.enable = mkOption {
type = types.bool;
default = false;
description = ''
Enable the mollysocket server, allowing UnifiedPush notifications for te Molly app.
'';
};
config = mkIf config.my.server.mollysocket.enable {
services.mollysocket = {
enable = true;
settings = {
allowed_uuids = [
extraInfo.signal.clientUuid
];
};
};
services.nginx.virtualHosts.${extraInfo.signal.notificationServerUri} = {
enableACME = true;
forceSSL = true;
locations."/" = {
recommendedProxySettings = true;
proxyWebsockets = true;
proxyPass = "http://${msConfig.host}:${builtins.toString msConfig.port}";
};
};
};
}