summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-07-04 16:42:15 +0200
committerRory& <root@rory.gay>2024-07-04 16:42:40 +0200
commit086952163490a2a8a4883aa2a5c30256266b83fa (patch)
treea259062a9cb41e3da527130f6276ec0e866e62dc
parentAdd missing workers (diff)
downloadRory-Open-Architecture-086952163490a2a8a4883aa2a5c30256266b83fa.tar.xz
Set default nginx virtualhost
-rw-r--r--host/Rory-nginx/services/matrix/synapse/workers/module.nix1
-rw-r--r--host/Rory-nginx/services/matrix/synapse/workers/user-dir.nix3
2 files changed, 2 insertions, 2 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/module.nix b/host/Rory-nginx/services/matrix/synapse/workers/module.nix
index 903f452..84b8a87 100644
--- a/host/Rory-nginx/services/matrix/synapse/workers/module.nix
+++ b/host/Rory-nginx/services/matrix/synapse/workers/module.nix
@@ -63,6 +63,7 @@ in
 
       nginxVirtualHostName = lib.mkOption {
         type = lib.types.str;
+        default = null;
         description = "The virtual host name for the nginx server";
       };
     };
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/user-dir.nix b/host/Rory-nginx/services/matrix/synapse/workers/user-dir.nix
index 4a097af..4d5069b 100644
--- a/host/Rory-nginx/services/matrix/synapse/workers/user-dir.nix
+++ b/host/Rory-nginx/services/matrix/synapse/workers/user-dir.nix
@@ -46,7 +46,6 @@ in
               ];
             }
           ];
-
           database = (
             import ../db.nix {
               workerName = "user_dir";
@@ -57,7 +56,7 @@ in
       };
     };
 
-    services.nginx.virtualHosts."${nginxVirtualHostName}" = {
+    services.nginx.virtualHosts."${cfg.nginxVirtualHostName}" = {
       locations."^/_matrix/client/(api/v1|r0|v3|unstable)/user_directory/search$" = {
         proxyPass = "http://unix:/run/matrix-synapse/user_dir-client.sock";
       };