forked from CCCHH/nix-infra
		
	Proxy to IPv4 local address
Only proxy to the local host on IPv4, because localhost doesn't seem to work even if matrix-synapse is listening on ::1 as well.
This commit is contained in:
		
					parent
					
						
							
								95ac75c355
							
						
					
				
			
			
				commit
				
					
						3053eb9b2f
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -38,7 +38,9 @@
 | 
			
		|||
      ];
 | 
			
		||||
 | 
			
		||||
      locations."~ ^(/_matrix|/_synapse/client)" = {
 | 
			
		||||
        proxyPass = "http://localhost:8008";
 | 
			
		||||
        # Only proxy to the local host on IPv4, because localhost doesn't seem to work
 | 
			
		||||
        # even if matrix-synapse is listening on ::1 as well.
 | 
			
		||||
        proxyPass = "http://127.0.0.1:8008";
 | 
			
		||||
        extraConfig = ''
 | 
			
		||||
          # Nginx by default only allows file uploads up to 1M in size
 | 
			
		||||
          # Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue