Drop mollysocket support
This commit is contained in:
parent
58ef8107a7
commit
bb56bb0074
3 changed files with 0 additions and 43 deletions
|
@ -53,7 +53,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
my.server.mollysocket.enable = true;
|
||||
my.server.blog.enable = true;
|
||||
my.server.papermc.enable = true;
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
../common
|
||||
./network.nix
|
||||
./nginx.nix
|
||||
./mollysocket.nix
|
||||
./blog.nix
|
||||
./minecraft.nix
|
||||
];
|
||||
|
|
|
@ -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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue