aboutsummaryrefslogtreecommitdiff
path: root/modules/pastor/default.nix
blob: ddb26289f854ff7fde145eb4d38eb01c9c4d6fd7 (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
25
{ 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;
        '';
      };
    };
  };
}