summaryrefslogtreecommitdiff
path: root/chaski/services
diff options
context:
space:
mode:
authorstuebinm2023-07-28 13:57:35 +0200
committerstuebinm2023-07-28 13:57:35 +0200
commit542a28a38a2adf2307e9b803de9cb62a67af75c6 (patch)
tree524d69ef48f0520a8b5e534e141d486aec1d955f /chaski/services
parent54770c4e6411df201c9c5f36c26decf4d43485c5 (diff)
run a conduit for like, fun i guess
Diffstat (limited to 'chaski/services')
-rw-r--r--chaski/services/conduit.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/chaski/services/conduit.nix b/chaski/services/conduit.nix
new file mode 100644
index 0000000..022863c
--- /dev/null
+++ b/chaski/services/conduit.nix
@@ -0,0 +1,36 @@
+{ config, lib, pkgs, ... }:
+
+{
+ services.matrix-conduit = {
+ enable = true;
+
+ extraEnvironment.RUST_BACKTRACE = "yes";
+ settings.global = {
+ server_name = "conduit.stuebinm.eu";
+ trusted_servers = [ ]; # TODO what does this mean?
+ port = 6167;
+ allow_registration = false;
+ };
+
+ };
+
+ services.nginx.virtualHosts."conduit.stuebinm.eu" = {
+ locations."/_matrix/".proxyPass = "http://localhost:6167";
+ enableACME = true;
+ forceSSL = true;
+ listen = [
+ {
+ addr = "[::]";
+ port = 443;
+ ssl = true;
+ }
+ {
+ addr = "[::]";
+ port = 8448;
+ ssl = true;
+ }
+ ];
+ };
+
+ networking.firewall.allowedTCPPorts = [ 8448 ];
+}