mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	getting nginx proxy to work /jupyterhub
This commit is contained in:
		
							parent
							
								
									6d8ef09582
								
							
						
					
					
						commit
						e6fe48cb29
					
				
					 2 changed files with 21 additions and 1 deletions
				
			
		
							
								
								
									
										20
									
								
								roles/jupyter/templates/jupyter-nginx.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								roles/jupyter/templates/jupyter-nginx.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
location   /jupyterhub {
 | 
			
		||||
        proxy_pass http://127.0.0.1:8000;
 | 
			
		||||
        proxy_set_header X-Real-IP $remote_addr;
 | 
			
		||||
        #proxy_set_header Host $host;
 | 
			
		||||
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 | 
			
		||||
        proxy_set_header X-NginX-Proxy true;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        # websocket headers
 | 
			
		||||
        proxy_http_version 1.1;
 | 
			
		||||
        proxy_set_header Upgrade $http_upgrade;
 | 
			
		||||
        #proxy_set_header Connection $connection_upgrade;
 | 
			
		||||
        proxy_set_header X-Scheme $scheme;
 | 
			
		||||
 | 
			
		||||
        proxy_buffering off;
 | 
			
		||||
    }
 | 
			
		||||
    # Managing requests to verify letsencrypt host
 | 
			
		||||
    location ~ /.well-known {
 | 
			
		||||
        allow all;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -124,7 +124,7 @@ c.JupyterHub.authenticator_class = 'firstuseauthenticator.FirstUseAuthenticator'
 | 
			
		|||
#  .. deprecated: 0.9
 | 
			
		||||
#      Use JupyterHub.bind_url
 | 
			
		||||
#  Default: '/'
 | 
			
		||||
# c.JupyterHub.base_url = '/'
 | 
			
		||||
# c.JupyterHub.base_url = '/jupyterhub'
 | 
			
		||||
 | 
			
		||||
## The public facing URL of the whole JupyterHub application.
 | 
			
		||||
#  
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue