summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/nginx/gold.krebsco.de.nix
blob: 083c0f8d7485227cf6d6482dc4a8cb093969acd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, lib, pkgs, ... }:

with import <stockholm/lib>;
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";
      };
    };
  };
}