ma binary-cache server: use key without secret.service
This commit is contained in:
parent
9e2e237af5
commit
de442ba8ad
@ -6,22 +6,9 @@
|
|||||||
services.nix-serve = {
|
services.nix-serve = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 5001;
|
port = 5001;
|
||||||
secretKeyFile = config.krebs.secret.files.nix-serve-key.path;
|
secretKeyFile = toString <secrets> + "/nix-serve.key";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.nix-serve = {
|
|
||||||
after = [
|
|
||||||
config.krebs.secret.files.nix-serve-key.service
|
|
||||||
];
|
|
||||||
partOf = [
|
|
||||||
config.krebs.secret.files.nix-serve-key.service
|
|
||||||
];
|
|
||||||
};
|
|
||||||
krebs.secret.files.nix-serve-key = {
|
|
||||||
path = "/run/secret/nix-serve.key";
|
|
||||||
owner.name = "nix-serve";
|
|
||||||
source-path = toString <secrets> + "/nix-serve.key";
|
|
||||||
};
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."cache.euer.krebsco.de" = {
|
virtualHosts."cache.euer.krebsco.de" = {
|
||||||
|
Loading…
Reference in New Issue
Block a user