summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-05-01 13:28:07 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-05-01 13:28:07 +0200
commite2fb1caefa1b483f3725d18fccff4c46051fab1f (patch)
treeb4b7105775721c6361955387de7fb1a40ec45d63 /host
parentAdd OPTIONS bypass for matrix (diff)
downloadRory-Open-Architecture-e2fb1caefa1b483f3725d18fccff4c46051fab1f.tar.xz
Fix nginx
Diffstat (limited to 'host')
-rwxr-xr-xhost/Rory-nginx/hosts/rory.gay/matrix.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/Rory-nginx/hosts/rory.gay/matrix.nix b/host/Rory-nginx/hosts/rory.gay/matrix.nix
index f97504b..26507fc 100755
--- a/host/Rory-nginx/hosts/rory.gay/matrix.nix
+++ b/host/Rory-nginx/hosts/rory.gay/matrix.nix
@@ -4,13 +4,13 @@
   locations."/_matrix" = {
     proxyPass = "http://192.168.1.5:8008"; 
     extraConfig = ''
-      if($request_method = 'OPTIONS') {
+      if ($request_method = 'OPTIONS') {
         add_header 'Access-Control-Allow-Origin' '*';
-        add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
+        add_header 'Access-Control-Allow-Methods' '*';
         #
         # Custom headers and headers various browsers *should* be OK with but aren't
         #
-        add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
+        add_header 'Access-Control-Allow-Headers' '*';
         #
         # Tell client that this pre-flight info is valid for 20 days
         #