fix: config based wellknown
This commit is contained in:
		
							parent
							
								
									75720c1663
								
							
						
					
					
						commit
						d5fccd962a
					
				
					 1 changed files with 16 additions and 3 deletions
				
			
		|  | @ -2,8 +2,21 @@ FROM nginx | ||||||
| 
 | 
 | ||||||
| COPY public /usr/share/nginx/html | COPY public /usr/share/nginx/html | ||||||
| 
 | 
 | ||||||
| RUN mkdir -p /usr/share/nginx/html/.well-known/matrix | RUN echo "server { \ | ||||||
| RUN echo '{"m.server": "dendrite.neo.ixvd.net:443"}' > /usr/share/nginx/html/.well-known/matrix/server |     listen       80; \ | ||||||
| RUN echo '{"m.homeserver":{"base_url":"dendrite.neo.ixvd.net:443"}}' > /usr/share/nginx/html/.well-known/matrix/server |     server_name  _; \ | ||||||
|  |     \ | ||||||
|  |     location /.well-known/matrix/server { \ | ||||||
|  |         return 200 '{ \"m.server\": \"dendrite.neo.ixvd.net:443\" }'; \ | ||||||
|  |     } \ | ||||||
|  |     \ | ||||||
|  |     location /.well-known/matrix/client { \ | ||||||
|  |         return 200 '{ \"m.homeserver\": { \"base_url\": \"https://element.envs.net\" } }'; \ | ||||||
|  |     } \ | ||||||
|  |     \ | ||||||
|  |     location /_matrix { \ | ||||||
|  |         proxy_pass http://dendrite; \ | ||||||
|  |     } \ | ||||||
|  | }" > /etc/nginx/conf.d/matrix.conf | ||||||
| 
 | 
 | ||||||
| EXPOSE 80 | EXPOSE 80 | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue