fix: nginx is stupid
This commit is contained in:
		
							parent
							
								
									203ccf5708
								
							
						
					
					
						commit
						020e7b4836
					
				
					 2 changed files with 22 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,17 @@
 | 
			
		|||
server {
 | 
			
		||||
    listen 80;
 | 
			
		||||
    server_name pad.ixvd.net sandbox.pad.ixvd.net;
 | 
			
		||||
    server_name pad.ixvd.net;
 | 
			
		||||
 | 
			
		||||
    location / {
 | 
			
		||||
        proxy_set_header Host $host;    
 | 
			
		||||
        proxy_set_header X-Forwarded-For $remote_addr;
 | 
			
		||||
        proxy_pass http://cryptpad;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
server {
 | 
			
		||||
    listen 80;
 | 
			
		||||
    server_name sandbox.pad.ixvd.net;
 | 
			
		||||
 | 
			
		||||
    location / {
 | 
			
		||||
        proxy_set_header Host $host;    
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
server {
 | 
			
		||||
    listen 80;
 | 
			
		||||
    server_name matrix.ixvd.net matrix.neo.ixvd.net;
 | 
			
		||||
    server_name matrix.ixvd.net;
 | 
			
		||||
    
 | 
			
		||||
    proxy_set_header Host      $host;
 | 
			
		||||
    proxy_set_header X-Real-IP $remote_addr;
 | 
			
		||||
| 
						 | 
				
			
			@ -24,4 +24,13 @@ server {
 | 
			
		|||
        proxy_pass http://conduit:6167; 
 | 
			
		||||
        client_max_body_size 0;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
server {
 | 
			
		||||
    listen 80;
 | 
			
		||||
    server_name matrix.neo.ixvd.net;
 | 
			
		||||
    
 | 
			
		||||
    location / {
 | 
			
		||||
        return 302 https://matrix.ixvd.net$request_uri;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue