diff options
| author | Grisha Shipunov | 2025-06-11 19:25:44 +0200 |
|---|---|---|
| committer | Grisha Shipunov | 2025-06-11 20:36:08 +0200 |
| commit | b2a00d0006bf4aac8bce9f404112e682c0015430 (patch) | |
| tree | f5e931c469f90123be45b1181b378aa08576cf13 /hosts/cloud/proxy/conduwuit.nix | |
| parent | f9ff89e13e86be30a2d65ad707ac3b7d0697c869 (diff) | |
nginx->caddy
Diffstat (limited to 'hosts/cloud/proxy/conduwuit.nix')
| -rw-r--r-- | hosts/cloud/proxy/conduwuit.nix | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/hosts/cloud/proxy/conduwuit.nix b/hosts/cloud/proxy/conduwuit.nix deleted file mode 100644 index 97ba4a3..0000000 --- a/hosts/cloud/proxy/conduwuit.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ ... }: -let - proxy-conf = '' - client_max_body_size 50M; - proxy_buffering off; - - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Access-Control-Allow-Origin *; - proxy_set_header Access-Control-Allow-Methods 'GET, POST, PUT, DELETE, OPTIONS'; - proxy_set_header Access-Control-Allow-Headers 'X-Requested-With, Content-Type, Authorization'; - - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - - proxy_read_timeout 600s; - proxy_send_timeout 600s; - send_timeout 600s; - ''; - -in -{ - services.nginx.upstreams.conduwuit = { - servers = { - "10.89.88.16:6167" = { }; - "[fd31:185d:722f::16]:6167" = { }; - }; - }; - - services.nginx.virtualHosts."oxapentane.com" = { - locations."/_matrix/" = { - proxyPass = "http://conduwuit$request_uri"; - extraConfig = proxy-conf; - }; - locations."/_conduwuit/" = { - proxyPass = "http://conduwuit$request_uri"; - extraConfig = proxy-conf; - }; - locations."/.well-known/matrix" = { - proxyPass = "http://conduwuit$request_uri"; - extraConfig = proxy-conf; - }; - }; -} |
