Compare commits
2 Commits
4800c506c2
...
f45b70594d
Author | SHA1 | Date |
---|---|---|
Oystein Kristoffer Tveit | f45b70594d | |
Oystein Kristoffer Tveit | db3625288b |
|
@ -37,6 +37,18 @@ in
|
||||||
] ++ (map (org: "gitea-web-secret-provider@${org}") organizations);
|
] ++ (map (org: "gitea-web-secret-provider@${org}") organizations);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.settings."10-gitea-web-secret-provider" =
|
||||||
|
builtins.listToAttrs (map (org: {
|
||||||
|
name = "/var/lib/gitea-web/web/${org}";
|
||||||
|
value = {
|
||||||
|
d = {
|
||||||
|
user = "gitea-web";
|
||||||
|
group = "nginx";
|
||||||
|
mode = "750";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}) organizations);
|
||||||
|
|
||||||
systemd.slices.system-giteaweb = {
|
systemd.slices.system-giteaweb = {
|
||||||
description = "Gitea web directories";
|
description = "Gitea web directories";
|
||||||
};
|
};
|
||||||
|
@ -68,7 +80,10 @@ in
|
||||||
User = "gitea-web";
|
User = "gitea-web";
|
||||||
Group = "gitea-web";
|
Group = "gitea-web";
|
||||||
|
|
||||||
StateDirectory = "gitea-web";
|
StateDirectory = toString [
|
||||||
|
"gitea-web/keys/%i"
|
||||||
|
"gitea-web/authorized_keys.d"
|
||||||
|
];
|
||||||
LoadCredential = [
|
LoadCredential = [
|
||||||
"token:${config.sops.secrets."gitea/web-secret-provider/token".path}"
|
"token:${config.sops.secrets."gitea/web-secret-provider/token".path}"
|
||||||
];
|
];
|
||||||
|
@ -103,7 +118,6 @@ in
|
||||||
|
|
||||||
services.openssh.authorizedKeysFiles = map (org: "/var/lib/gitea-web/authorized_keys.d/${org}") organizations;
|
services.openssh.authorizedKeysFiles = map (org: "/var/lib/gitea-web/authorized_keys.d/${org}") organizations;
|
||||||
|
|
||||||
users.users.nginx.extraGroups = [ "gitea-web" ];
|
|
||||||
services.nginx.virtualHosts."pages.pvv.ntnu.no" = {
|
services.nginx.virtualHosts."pages.pvv.ntnu.no" = {
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
Loading…
Reference in New Issue