Arion: Limit mollysocket to specific UUIDs
This commit is contained in:
parent
bb038e237d
commit
9a9a1f947d
2 changed files with 15 additions and 8 deletions
hosts/franz/arion/signal
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{
|
||||
project.name = "signal";
|
||||
|
||||
networks.dmz = {
|
||||
|
@ -37,8 +37,7 @@
|
|||
};
|
||||
environment = {
|
||||
MOLLY_DB = "/data/mollysocket.db";
|
||||
MOLLY_ALLOWED_ENDPOINTS = "[\"https://push.ghoscht.com\",\"*\"]";
|
||||
MOLLY_ALLOWED_UUIDS = "[\"*\"]";
|
||||
MOLLY_ALLOWED_ENDPOINTS = "[\"https://push.ghoscht.com\"]";
|
||||
MOLLY_HOST = "0.0.0.0";
|
||||
MOLLY_PORT = 8020;
|
||||
RUST_LOG = "info";
|
||||
|
|
|
@ -1,14 +1,21 @@
|
|||
{config, ...}: let
|
||||
{ config, ... }:
|
||||
let
|
||||
vars = import ../../../../vars.nix;
|
||||
in {
|
||||
in
|
||||
{
|
||||
virtualisation.arion = {
|
||||
projects.signal.settings = {
|
||||
imports = [./arion-compose.nix];
|
||||
imports = [ ./arion-compose.nix ];
|
||||
};
|
||||
};
|
||||
|
||||
sops.secrets."signal/vapid_privkey" = {
|
||||
owner = vars.user;
|
||||
sops.secrets = {
|
||||
"signal/vapid_privkey" = {
|
||||
owner = vars.user;
|
||||
};
|
||||
"signal/allowed_uuids" = {
|
||||
owner = vars.user;
|
||||
};
|
||||
};
|
||||
|
||||
sops.templates."mollysocket.env" = {
|
||||
|
@ -17,6 +24,7 @@ in {
|
|||
mode = "0775";
|
||||
content = ''
|
||||
MOLLY_VAPID_PRIVKEY="${config.sops.placeholder."signal/vapid_privkey"}"
|
||||
MOLLY_ALLOWED_UUIDS="${config.sops.placeholder."signal/allowed_uuids"}"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue