summary refs log tree commit diff
path: root/host/Rory-nginx/services/nginx/localhost/matrix-rory-gay.nix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-07-04 14:59:36 +0200
committerRory& <root@rory.gay>2024-07-04 14:59:36 +0200
commitdd7b872694441a96b8b042ccbc4b63a96d0b89b9 (patch)
tree76a25875e08415c38cdb7b5ad8f93241b387d078 /host/Rory-nginx/services/nginx/localhost/matrix-rory-gay.nix
parentUpdate flake inputs (diff)
downloadRory-Open-Architecture-dd7b872694441a96b8b042ccbc4b63a96d0b89b9.tar.xz
Nixfmt
Diffstat (limited to 'host/Rory-nginx/services/nginx/localhost/matrix-rory-gay.nix')
-rw-r--r--host/Rory-nginx/services/nginx/localhost/matrix-rory-gay.nix433
1 files changed, 216 insertions, 217 deletions
diff --git a/host/Rory-nginx/services/nginx/localhost/matrix-rory-gay.nix b/host/Rory-nginx/services/nginx/localhost/matrix-rory-gay.nix
index 3e48d0f..73c22b6 100644
--- a/host/Rory-nginx/services/nginx/localhost/matrix-rory-gay.nix
+++ b/host/Rory-nginx/services/nginx/localhost/matrix-rory-gay.nix
@@ -22,228 +22,228 @@
   #   '';
   # };
 
-  		# https://matrix-org.github.io/synapse/latest/workers.html#synapseappgeneric_worker
-	locations."~ ^/_matrix/client/(r0|v3)/sync$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
+  # https://matrix-org.github.io/synapse/latest/workers.html#synapseappgeneric_worker
+  locations."~ ^/_matrix/client/(r0|v3)/sync$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
     extraConfig = ''
-			# We want to wait for 15 minutes here...
-			proxy_read_timeout 54000;
-			proxy_connect_timeout 54000;
-			proxy_send_timeout 54000;
-		'';
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3)/events$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3)/initialSync$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/createRoom$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/publicRooms$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/joined_members$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/context/.*$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/v1/rooms/.*/hierarchy$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(v1|unstable)/rooms/.*/relations/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/v1/rooms/.*/threads$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/unstable/org.matrix.msc2716/rooms/.*/batch_send$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/account/3pid$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/account/whoami$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/devices$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/versions$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/voip/turnServer$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/event/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/joined_rooms$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/v1/rooms/.*/timestamp_to_event$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/search$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/keys/query$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/keys/changes$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/keys/claim$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/room_keys/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/keys/upload/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/login$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/register$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/v1/register/m.login.registration_token/validity$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/redact" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/send" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/join/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/profile/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
+      # We want to wait for 15 minutes here...
+      proxy_read_timeout 54000;
+      proxy_connect_timeout 54000;
+      proxy_send_timeout 54000;
+    '';
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3)/events$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3)/initialSync$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/createRoom$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/publicRooms$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/joined_members$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/context/.*$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/v1/rooms/.*/hierarchy$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(v1|unstable)/rooms/.*/relations/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/v1/rooms/.*/threads$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/unstable/org.matrix.msc2716/rooms/.*/batch_send$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/account/3pid$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/account/whoami$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/devices$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/versions$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/voip/turnServer$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/event/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/joined_rooms$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/v1/rooms/.*/timestamp_to_event$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/search$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/keys/query$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/keys/changes$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/keys/claim$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/room_keys/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/keys/upload/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/login$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/register$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/v1/register/m.login.registration_token/validity$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/redact" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/send" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/join/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/profile/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
 
-			# https://matrix-org.github.io/synapse/latest/workers.html#the-typing-stream
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/typing" = {
-		proxyPass = "http://stream_writer_typing_stream_workers_upstream$request_uri";
-	};
+  # https://matrix-org.github.io/synapse/latest/workers.html#the-typing-stream
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/typing" = {
+    proxyPass = "http://stream_writer_typing_stream_workers_upstream$request_uri";
+  };
 
-			# https://matrix-org.github.io/synapse/latest/workers.html#the-to_device-stream
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/sendToDevice/" = {
-		proxyPass = "http://stream_writer_to_device_stream_workers_upstream$request_uri";
-	};
+  # https://matrix-org.github.io/synapse/latest/workers.html#the-to_device-stream
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/sendToDevice/" = {
+    proxyPass = "http://stream_writer_to_device_stream_workers_upstream$request_uri";
+  };
 
-			# https://matrix-org.github.io/synapse/latest/workers.html#the-account_data-stream
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/.*/tags" = {
-		proxyPass = "http://stream_writer_account_data_stream_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/.*/account_data" = {
-		proxyPass = "http://stream_writer_account_data_stream_workers_upstream$request_uri";
-	};
-			# https://matrix-org.github.io/synapse/latest/workers.html#the-receipts-stream
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/rooms/.*/receipt" = {
-		proxyPass = "http://stream_writer_receipts_stream_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/client/(r0|v3|unstable)/rooms/.*/read_markers" = {
-		proxyPass = "http://stream_writer_receipts_stream_workers_upstream$request_uri";
-	};
-			# https://matrix-org.github.io/synapse/latest/workers.html#the-presence-stream
-	locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/presence/" = {
-		proxyPass = "http://stream_writer_presence_stream_workers_upstream$request_uri";
-	};
+  # https://matrix-org.github.io/synapse/latest/workers.html#the-account_data-stream
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/.*/tags" = {
+    proxyPass = "http://stream_writer_account_data_stream_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/.*/account_data" = {
+    proxyPass = "http://stream_writer_account_data_stream_workers_upstream$request_uri";
+  };
+  # https://matrix-org.github.io/synapse/latest/workers.html#the-receipts-stream
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/rooms/.*/receipt" = {
+    proxyPass = "http://stream_writer_receipts_stream_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/client/(r0|v3|unstable)/rooms/.*/read_markers" = {
+    proxyPass = "http://stream_writer_receipts_stream_workers_upstream$request_uri";
+  };
+  # https://matrix-org.github.io/synapse/latest/workers.html#the-presence-stream
+  locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/presence/" = {
+    proxyPass = "http://stream_writer_presence_stream_workers_upstream$request_uri";
+  };
 
   ### DUPLICATES????
   # https://matrix-org.github.io/synapse/latest/workers.html#updating-the-user-directory
   locations."~ ^/_matrix/client/(r0|v3|unstable)/user_directory/search$" = {
-		proxyPass = "http://user_dir_workers_upstream$request_uri";
-	};
+    proxyPass = "http://user_dir_workers_upstream$request_uri";
+  };
 
   # ???
-	locations."/" = {
-		#resolver 127.0.0.11 valid=5s;
-		#set $backend "matrix-synapse:8008";
-		#proxyPass = "http://$backend";
+  locations."/" = {
+    #resolver 127.0.0.11 valid=5s;
+    #set $backend "matrix-synapse:8008";
+    #proxyPass = "http://$backend";
     proxyPass = "http://127.0.0.1:8008";
-	};
+  };
 
-	locations."~ ^/_matrix/federation/v1/event/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/state/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/state_ids/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/backfill/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/get_missing_events/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/publicRooms" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/query/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/make_join/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/make_leave/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/(v1|v2)/send_join/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/(v1|v2)/send_leave/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/(v1|v2)/invite/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/event_auth/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/timestamp_to_event/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/exchange_third_party_invite/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/user/devices/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/key/v2/query" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/hierarchy/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
-	locations."~ ^/_matrix/federation/v1/send/" = {
-		proxyPass = "http://generic_workers_upstream$request_uri";
-	};
+  locations."~ ^/_matrix/federation/v1/event/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/state/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/state_ids/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/backfill/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/get_missing_events/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/publicRooms" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/query/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/make_join/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/make_leave/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/(v1|v2)/send_join/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/(v1|v2)/send_leave/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/(v1|v2)/invite/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/event_auth/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/timestamp_to_event/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/exchange_third_party_invite/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/user/devices/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/key/v2/query" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/hierarchy/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
+  locations."~ ^/_matrix/federation/v1/send/" = {
+    proxyPass = "http://generic_workers_upstream$request_uri";
+  };
 
   ##### media repo
 
@@ -270,12 +270,11 @@
     proxyPass = "http://media_repository_workers_upstream$request_uri";
   };
 
-	#locations."/" = {
-		#resolver 127.0.0.11 valid=5s;
-		#set $backend "matrix-synapse:8048";
-		#proxyPass = "http://$backend";
-	#};
-  
+  #locations."/" = {
+  #resolver 127.0.0.11 valid=5s;
+  #set $backend "matrix-synapse:8048";
+  #proxyPass = "http://$backend";
+  #};
 
-  locations."/_synapse/client".proxyPass = "http://127.0.0.1:8008";   
+  locations."/_synapse/client".proxyPass = "http://127.0.0.1:8008";
 }