aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2024-08-12 19:26:15 +0200
committerMax Audron <audron@cocaine.farm>2024-08-12 19:26:15 +0200
commitdb28d0119eceb8d88faf2a55990a8b99be096beb (patch)
tree8a08d3c756abc1de58d8791cd7d2c4224898b0b1 /modules
parentremove psql ensurePermissions (diff)
add pastor deployment
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;
+ '';
+ };
+ };
+ };
+}