forked from clan/clan-infra
fix harmonia config
This commit is contained in:
parent
ba3af50dd5
commit
6f82a31db9
@ -12,6 +12,7 @@
|
||||
|
||||
web01.imports = [
|
||||
self.nixosModules.server
|
||||
inputs.srvos.nixosModules.mixins-nginx
|
||||
./web01
|
||||
];
|
||||
};
|
||||
|
@ -1,11 +1,16 @@
|
||||
{ config, ... }: {
|
||||
{ config, pkgs, ... }: {
|
||||
services.harmonia.enable = true;
|
||||
# $ nix-store --generate-binary-cache-key cache.yourdomain.tld-1 harmonia.secret harmonia.pub
|
||||
services.harmonia.signKeyPath = config.sops.secrets.harmonia-key.path;
|
||||
sops.secrets.harmonia-key = { };
|
||||
|
||||
services.nginx = {
|
||||
package = pkgs.nginxStable.override {
|
||||
modules = [ pkgs.nginxModules.zstd ];
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."cache.clan.lol" = {
|
||||
useACMEHost = "thalheim.io";
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".extraConfig = ''
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user