mirror of
				https://github.com/ComputerScienceHouse/proxstar.git
				synced 2025-03-09 15:40:09 +00:00 
			
		
		
		
	Adding health route
This commit is contained in:
		
							parent
							
								
									dc3df5bbc8
								
							
						
					
					
						commit
						4bfac574db
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -584,6 +584,14 @@ def logout():
 | 
				
			||||||
    return redirect(url_for('list_vms'), 302)
 | 
					    return redirect(url_for('list_vms'), 302)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@app.route("/health")
 | 
				
			||||||
 | 
					def health():
 | 
				
			||||||
 | 
					    """
 | 
				
			||||||
 | 
					    Shows an ok status if the application is up and running
 | 
				
			||||||
 | 
					    """
 | 
				
			||||||
 | 
					    return {"status": "ok"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def exit_handler():
 | 
					def exit_handler():
 | 
				
			||||||
    stop_websockify()
 | 
					    stop_websockify()
 | 
				
			||||||
    for tunnel in ssh_tunnels:
 | 
					    for tunnel in ssh_tunnels:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue