mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[enh] overwrite secret_key from env with the SEARX_SECRET env var if exists - closes #845
This commit is contained in:
		
							parent
							
								
									9e5b1dfb7c
								
							
						
					
					
						commit
						e303339370
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -87,3 +87,6 @@ if OPENSSL_VERSION_INFO[0:3] < (1, 0, 2): | |||
|     logger.warning('You are using an old openssl version({0}), please upgrade above 1.0.2!'.format(OPENSSL_VERSION)) | ||||
| 
 | ||||
| logger.info('Initialisation done') | ||||
| 
 | ||||
| if 'SEARX_SECRET' in environ: | ||||
|     settings['server']['secret_key'] = environ['SEARX_SECRET'] | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Adam Tauber
						Adam Tauber