server-configs/machines/gerd/services/cyberchef.nix

28 lines
589 B
Nix
Raw Permalink Normal View History

2024-08-13 13:08:52 +00:00
{ config, pkgs, ... }:
let
svc_domain = "cyberchef.${config.mine.shared.settings.domain}";
pkg_cyberchef = pkgs.cyberchef;
in {
services.nginx.virtualHosts."${svc_domain}" = {
forceSSL = true;
enableACME = true;
locations."/".root = pkg_cyberchef + "/share/cyberchef";
};
mine.shared.meta.cyberchef = {
name = "CyberChef";
description = "We host our own CyberChef instance.";
url = "https://${svc_domain}";
package = let
pkg = pkg_cyberchef;
in {
name = pkg.pname;
version = pkg.version;
meta = pkg.meta;
};
};
}