gerd.cyberchef: unit service

This commit is contained in:
eyjhb 2024-08-13 15:08:52 +02:00
parent 280ad7013d
commit 735895df7b
No known key found for this signature in database
GPG key ID: 609F508E3239F920
2 changed files with 28 additions and 0 deletions

View file

@ -13,6 +13,7 @@
./gerd/services/teeworlds.nix
./gerd/services/murmur.nix
./gerd/services/hedgedoc.nix
./gerd/services/cyberchef.nix
./gerd/services/member-website

View file

@ -0,0 +1,27 @@
{ 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;
};
};
}