aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-12-26 09:29:43 +0100
committerMartin Fischer <martin@push-f.com>2025-12-26 09:29:56 +0100
commit6d89835197a8e5a342d73b5e38dab06112312e9b (patch)
treec419c9aaa32aa92613fa857a68c9bc966c96ecbf /nixos
parent20e0a9ccf4df7f2c6c12d13ff17b515fc50d7ab5 (diff)
refactor(tente): set www-data as an extra group
Log files shouldn't be owned by www-data.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/hosts/tente/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix
index 277bc58..e853d12 100644
--- a/nixos/hosts/tente/default.nix
+++ b/nixos/hosts/tente/default.nix
@@ -69,6 +69,13 @@ in
];
};
+ nginx = {
+ isSystemUser = true;
+ extraGroups = [
+ "www-data"
+ ];
+ };
+
www-generator = {
isSystemUser = true;
group = "www-generator";
@@ -105,7 +112,6 @@ in
services.nginx = {
enable = true;
- group = "www-data";
virtualHosts."tente.tailnet" = helpers.serviceIndexHost "tente.tailnet" ports.webUis;