gerd.cyberchef: unit service
This commit is contained in:
parent
280ad7013d
commit
735895df7b
2 changed files with 28 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
./gerd/services/teeworlds.nix
|
./gerd/services/teeworlds.nix
|
||||||
./gerd/services/murmur.nix
|
./gerd/services/murmur.nix
|
||||||
./gerd/services/hedgedoc.nix
|
./gerd/services/hedgedoc.nix
|
||||||
|
./gerd/services/cyberchef.nix
|
||||||
|
|
||||||
./gerd/services/member-website
|
./gerd/services/member-website
|
||||||
|
|
||||||
|
|
27
machines/gerd/services/cyberchef.nix
Normal file
27
machines/gerd/services/cyberchef.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue