Merge #2207
2207: Update webmail container configuration to support MESSAGE_SIZE_LIMIT r=mergify[bot] a=marioja ## What type of PR? bug-fix ## What does this PR do? ### Related issue(s) - Auto close an issue like: closes #2186 ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Mario Jauvin <marioja@users.noreply.github.com>master
commit
b73963aae5
@ -0,0 +1 @@
|
|||||||
|
Will update /etc/nginx/nginx.conf and /etc/nginx/http.d/rainloop.conf in webmail container to support MESSAGE_SIZE_LIMIT
|
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import os
|
||||||
|
import logging as log
|
||||||
|
import sys
|
||||||
|
from socrate import system, conf
|
||||||
|
|
||||||
|
args = os.environ.copy()
|
||||||
|
|
||||||
|
log.basicConfig(stream=sys.stderr, level=args.get("LOG_LEVEL", "WARNING"))
|
||||||
|
|
||||||
|
# Build final configuration paths
|
||||||
|
conf.jinja("/config/nginx-rainloop.conf", args, "/etc/nginx/http.d/rainloop.conf")
|
||||||
|
if os.path.exists("/var/run/nginx.pid"):
|
||||||
|
os.system("nginx -s reload")
|
Loading…
Reference in New Issue