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