aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/default.nix1
-rw-r--r--modules/pastor/default.nix25
2 files changed, 26 insertions, 0 deletions
diff --git a/modules/default.nix b/modules/default.nix
index 8bb7960..ee4129a 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -29,4 +29,5 @@
laplace = import ./laplace;
catinator = import ./catinator;
+ pastor = import ./pastor;
}
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;
+ '';
+ };
+ };
+ };
+}