From db28d0119eceb8d88faf2a55990a8b99be096beb Mon Sep 17 00:00:00 2001 From: Max Audron Date: Mon, 12 Aug 2024 19:26:15 +0200 Subject: add pastor deployment --- modules/pastor/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/pastor/default.nix (limited to 'modules/pastor/default.nix') diff --git a/modules/pastor/default.nix b/modules/pastor/default.nix new file mode 100644 index 0000000..ddb2628 --- /dev/null +++ b/modules/pastor/default.nix @@ -0,0 +1,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; + ''; + }; + }; + }; +} -- cgit v1.2.3