mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-10-31 01:57:59 +00:00 
			
		
		
		
	Apply suggestions from code review
Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
This commit is contained in:
		 Florent Daigniere
					Florent Daigniere
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							c6c4c09f08
						
					
				
				
					commit
					cdf8ee8820
				
			| @@ -64,7 +64,7 @@ test_unsupported() | |||||||
|  |  | ||||||
| cmdline = [ | cmdline = [ | ||||||
|     "gunicorn", |     "gunicorn", | ||||||
|     "--threads", f"{os.environ.get('CPU_COUNT', 1)}", |     "--threads", os.environ.get('CPU_COUNT', '1'), | ||||||
|     # If SUBNET6 is defined, gunicorn must listen on IPv6 as well as IPv4 |     # If SUBNET6 is defined, gunicorn must listen on IPv6 as well as IPv4 | ||||||
|     "-b", f"{'[::]' if os.environ.get('SUBNET6') else '0.0.0.0'}:8080", |     "-b", f"{'[::]' if os.environ.get('SUBNET6') else '0.0.0.0'}:8080", | ||||||
|     "--logger-class mailu.Logger", |     "--logger-class mailu.Logger", | ||||||
|   | |||||||
| @@ -141,6 +141,7 @@ def clean_env(): | |||||||
|         for item in os.environ.get('TLS', ALL_PORTS).split(','): |         for item in os.environ.get('TLS', ALL_PORTS).split(','): | ||||||
|             if item in PORTS_REQUIRING_TLS: |             if item in PORTS_REQUIRING_TLS: | ||||||
|                 os.environ[f'TLS_{item}']='True' |                 os.environ[f'TLS_{item}']='True' | ||||||
|  |     if 'CPU_COUNT' not in os.environ: | ||||||
|         os.environ['CPU_COUNT'] = str(os.cpu_count()) |         os.environ['CPU_COUNT'] = str(os.cpu_count()) | ||||||
|  |  | ||||||
| def drop_privs_to(username='mailu'): | def drop_privs_to(username='mailu'): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user