Set locations priority for matrix reverse proxy
This commit is contained in:
		
					parent
					
						
							
								8bb1c5853b
							
						
					
				
			
			
				commit
				
					
						f0368c9a61
					
				
			
		
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -17,6 +17,10 @@
 | 
			
		|||
        }
 | 
			
		||||
      ];
 | 
			
		||||
      locations = {
 | 
			
		||||
        "~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)" = {
 | 
			
		||||
          proxyPass = "http://127.0.0.1:8009";
 | 
			
		||||
          priority = 999;
 | 
			
		||||
        };
 | 
			
		||||
        "~ ^(/_matrix|/_synapse/client)" = {
 | 
			
		||||
          proxyPass = "http://127.0.0.1:8008";
 | 
			
		||||
          extraConfig = ''
 | 
			
		||||
| 
						 | 
				
			
			@ -25,9 +29,6 @@
 | 
			
		|||
            client_max_body_size ${config.services.matrix-synapse.settings.max_upload_size};
 | 
			
		||||
          '';
 | 
			
		||||
        };
 | 
			
		||||
        "~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)" = {
 | 
			
		||||
          proxyPass = "http://127.0.0.1:8009";
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
      extraConfig = ''
 | 
			
		||||
        listen 0.0.0.0:8443 http2 ssl proxy_protocol;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue