aboutsummaryrefslogtreecommitdiff
path: root/modules/pastor/default.nix
blob: e9c6b6338ccf0db1834d2ffe96bc9db572a1e456 (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
{ self, config, lib, pkgs, pastor, ... }:

{
  imports = [ pastor.nixosModules.default ];

  services.pastor = {};

  security.acme.certs = {
    "c-v.sh" = {
      extraDomainNames = [ "*.c-v.sh" ];
    };
  };

  services.nginx = {
    enable = true;
    virtualHosts = {
      "c-v.sh" = (self.lib.nginx.proxyDomain "c-v.sh" "http://127.0.0.1:6881/") // {
        extraConfig = ''
          client_max_body_size 4G;
        '';
      };
    };
  };
}