more config options added
This commit is contained in:
		
							parent
							
								
									04444c36f8
								
							
						
					
					
						commit
						f60ae31595
					
				
					 2 changed files with 8 additions and 3 deletions
				
			
		|  | @ -1,8 +1,10 @@ | |||
| [main] | ||||
| separator_char = ; | ||||
| port = 5000 | ||||
| bind = 0.0.0.0 | ||||
| base_url = https://ab.21x9.org | ||||
| timezone = Europe/Berlin | ||||
| mail = abgame@21x9.org | ||||
| base_url = https://ab.21x9.org | ||||
| separator_char = ; | ||||
| 
 | ||||
| [i18n] | ||||
| lang = de | ||||
|  |  | |||
							
								
								
									
										5
									
								
								game.py
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								game.py
									
										
									
									
									
								
							|  | @ -103,4 +103,7 @@ def getContent(): | |||
| 
 | ||||
| if __name__ == "__main__": | ||||
|     from waitress import serve | ||||
|     serve(app, host='0.0.0.0', port=5000, ident='a/b game') | ||||
|     bind = config.get('main', 'bind') | ||||
|     port = config.get('main', 'port') | ||||
| 
 | ||||
|     serve(app, host=bind, port=port, ident='a/b game') | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue