Format nginx matrix .well-known json
This commit is contained in:
		
					parent
					
						
							
								42b11fc05e
							
						
					
				
			
			
				commit
				
					
						35b9a0ceda
					
				
			
		
					 2 changed files with 17 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -16,7 +16,22 @@
 | 
			
		|||
      '';
 | 
			
		||||
    };
 | 
			
		||||
    locations."/.well-known/matrix/client" = {
 | 
			
		||||
      return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.nekover.se\"}, \"m.identity_server\": {\"base_url\": \"https://vector.im\"}, \"org.matrix.msc3575.proxy\": {\"url\": \"https://matrix.nekover.se\"}, \"org.matrix.msc2965.authentication\": {\"issuer\": \"https://id.nekover.se/realms/nekoverse\", \"account\": \"https://id.nekover.se/realms/nekoverse/account/\"}}'";
 | 
			
		||||
      return = "200 '
 | 
			
		||||
        {
 | 
			
		||||
          \"m.homeserver\": {
 | 
			
		||||
            \"base_url\": \"https://matrix.nekover.se\"
 | 
			
		||||
          },
 | 
			
		||||
          \"m.identity_server\": {
 | 
			
		||||
            \"base_url\": \"https://vector.im\"
 | 
			
		||||
          },
 | 
			
		||||
          \"org.matrix.msc3575.proxy\": {
 | 
			
		||||
            \"url\": \"https://matrix.nekover.se\"
 | 
			
		||||
          },
 | 
			
		||||
          \"org.matrix.msc2965.authentication\": {
 | 
			
		||||
            \"issuer\": \"https://nekover.se/\",
 | 
			
		||||
            \"account\": \"https://matrix-auth.nekover.se/account\"
 | 
			
		||||
          }
 | 
			
		||||
        }'";
 | 
			
		||||
      extraConfig = ''
 | 
			
		||||
        default_type application/json;
 | 
			
		||||
        add_header Access-Control-Allow-Origin *;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue