aboutsummaryrefslogtreecommitdiff
path: root/hosts/tower/web/blog.nix
blob: 7cefd6e158e707216c6cc3a30f78d526913ae61c (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
{
  inputs,
  pkgs,
  # config,
  ...
}:
{
  services.nginx = {
    enable = true;

    virtualHosts."sorre.xyz" = {
      # enableACME = true;
      # forceSSL = true;
      root = inputs.sorre-website.packages.${pkgs.system}.default;
    };

    virtualHosts."priv.sorre.xyz" = {
      # enableACME = true;
      # forceSSL = true;
      root = "/var/www/priv";
      # basicAuthFile = config.sops.secrets."priv-blog-auth-file".path;
    };
  };
}