summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-07 01:07:02 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-07 01:07:02 +0200
commit5671d486b81892cc727fddf3f4713c08ab17b3a6 (patch)
tree1f57929f68e65f12833250437c6e47c4733e7c21
parentAdd nginx to container (diff)
downloadRory-Open-Architecture-5671d486b81892cc727fddf3f4713c08ab17b3a6.tar.xz
Fix ip of bots.rory.gay
-rwxr-xr-xhost/Rory-nginx/services/containers/pluralcontactbotpoc/services/pantalaimon.nix33
-rwxr-xr-xhost/Rory-nginx/services/nginx/rory.gay/bots.nix2
2 files changed, 34 insertions, 1 deletions
diff --git a/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/pantalaimon.nix b/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/pantalaimon.nix
new file mode 100755
index 0000000..f2fdad6
--- /dev/null
+++ b/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/pantalaimon.nix
@@ -0,0 +1,33 @@
+{ config, pkgs, lib, conduit, ... }:
+
+{
+  services.matrix-conduit = {
+    package = conduit.packages.${pkgs.system}.default;
+    enable = true;
+    settings.global = {
+      address = "127.0.0.1";
+      server_name = "pcpoc.rory.gay";
+      database_backend = "rocksdb";
+      enable_lightning_bolt = true;
+      max_concurrent_requests = 1000;
+      allow_check_for_updates = false;
+      allow_registration = false;
+    };
+  };
+  systemd.services.matrix-conduit-reg-token = {
+      description = "Random registration token for Conduit.";
+      before = ["conduit.service"]; # So the registration can be used by Conduit.
+      after = ["matrix-synapse-reg-token.service"];
+
+      script = ''
+        mkdir -p /run/systemd/system/conduit.service.d
+        echo Environment=\"CONDUIT_REGISTRATION_TOKEN=$(cat /var/lib/matrix-synapse/registration_shared_secret.txt)\" > /run/systemd/system/conduit.service.d/override.conf
+        systemctl daemon-reload'';
+      serviceConfig = {
+        User = "root";
+        Group = "root";
+      };
+    };
+  system.stateVersion = "22.11"; # DO NOT EDIT!
+}
+
diff --git a/host/Rory-nginx/services/nginx/rory.gay/bots.nix b/host/Rory-nginx/services/nginx/rory.gay/bots.nix
index f18a402..7652dc9 100755
--- a/host/Rory-nginx/services/nginx/rory.gay/bots.nix
+++ b/host/Rory-nginx/services/nginx/rory.gay/bots.nix
@@ -3,7 +3,7 @@
   addSSL = true;
   locations = {
     "/" = {
-      proxyPass = "http://192.168.1.50:5033";
+      proxyPass = "http://127.0.0.1:5033";
     };
   };
 }
\ No newline at end of file