You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-17 01:32:29 +02:00
Apply suggestions from code review
Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c6c4c09f08
commit
cdf8ee8820
@ -64,7 +64,7 @@ test_unsupported()
|
||||
|
||||
cmdline = [
|
||||
"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
|
||||
"-b", f"{'[::]' if os.environ.get('SUBNET6') else '0.0.0.0'}:8080",
|
||||
"--logger-class mailu.Logger",
|
||||
|
@ -141,6 +141,7 @@ def clean_env():
|
||||
for item in os.environ.get('TLS', ALL_PORTS).split(','):
|
||||
if item in PORTS_REQUIRING_TLS:
|
||||
os.environ[f'TLS_{item}']='True'
|
||||
if 'CPU_COUNT' not in os.environ:
|
||||
os.environ['CPU_COUNT'] = str(os.cpu_count())
|
||||
|
||||
def drop_privs_to(username='mailu'):
|
||||
|
Reference in New Issue
Block a user