tyo0/ntfy: fine grain unix socket permission
This commit is contained in:
parent
d472b07cff
commit
b1e15b64ff
2 changed files with 5 additions and 2 deletions
|
@ -63,7 +63,10 @@
|
||||||
listen = [ ":443" ];
|
listen = [ ":443" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."caddy".serviceConfig.SupplementaryGroups = [ "forgejo" ];
|
systemd.services."caddy".serviceConfig.SupplementaryGroups = [
|
||||||
|
"forgejo"
|
||||||
|
"ntfy-sh"
|
||||||
|
];
|
||||||
|
|
||||||
services.caddy.settings.apps.http.servers.srv0.routes = [
|
services.caddy.settings.apps.http.servers.srv0.routes = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
base-url = "https://ntfy.ny4.dev";
|
base-url = "https://ntfy.ny4.dev";
|
||||||
listen-http = "";
|
listen-http = "";
|
||||||
listen-unix = "/run/ntfy-sh/ntfy.sock";
|
listen-unix = "/run/ntfy-sh/ntfy.sock";
|
||||||
listen-unix-mode = 511; # 0777
|
listen-unix-mode = 432; # 0660
|
||||||
behind-proxy = true;
|
behind-proxy = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue