2018-08-06 16:28:59 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2023-07-02 16:05:52 +02:00
|
|
|
with pkgs.stockholm.lib;
|
2018-08-06 16:28:59 +02:00
|
|
|
let
|
|
|
|
gold = pkgs.fetchFromGitHub {
|
|
|
|
owner = "krebs";
|
|
|
|
repo = "krebsgold";
|
|
|
|
rev = "15f7a74";
|
|
|
|
sha256= "1ya9xgg640k3hbl63022sfm44c1si2mxch8jkxindmwg4pa1y4ly";
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = mkDefault true;
|
|
|
|
virtualHosts = {
|
|
|
|
"gold.krebsco.de" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
root = toString gold + "/html";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|