set secret via systemd to avoid users entirely
This commit is contained in:
parent
0fd416429e
commit
56690ad45f
2 changed files with 5 additions and 15 deletions
|
@ -1,26 +1,16 @@
|
|||
{config, ...}: let
|
||||
mollySocketUser = "mollysocket";
|
||||
in {
|
||||
{config, ...}: {
|
||||
sops.secrets."mollysocket-vapid-key".mode = "0440";
|
||||
sops.secrets."mollysocket-vapid-key" = {
|
||||
owner = mollySocketUser;
|
||||
group = mollySocketUser;
|
||||
};
|
||||
|
||||
services.mollysocket = {
|
||||
enable = true;
|
||||
environmentFile = config.sops.secrets."mollysocket-vapid-key".path;
|
||||
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;
|
||||
};
|
||||
};
|
||||
systemd.services.mollysocket.serviceConfig = {
|
||||
User = mollySocketUser;
|
||||
Group = mollySocketUser;
|
||||
};
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
"molly.gladtherescake.eu" = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue