diff --git a/deploy/entrypoint.sh b/deploy/entrypoint.sh index 43863689..24a81a2c 100755 --- a/deploy/entrypoint.sh +++ b/deploy/entrypoint.sh @@ -24,5 +24,5 @@ elif [[ "$DEV_SERVER" = "true" ]]; then exec python -Wd ./manage.py runserver 0.0.0.0:8000 else echo "Starting production server" - exec uwsgi -y deploy/uwsgi.yml + exec uwsgi -ini deploy/uwsgi.ini fi diff --git a/deploy/uwsgi.ini b/deploy/uwsgi.ini new file mode 100644 index 00000000..35e0ee58 --- /dev/null +++ b/deploy/uwsgi.ini @@ -0,0 +1,22 @@ +[uwsgi] +# Needed plugins if running against Debian uwsgi-package +# python docker image cannot use that due to linker mishaps +wsgi-file = kerrokantasi/wsgi.py +processes = 3 +#threads = 1 +master = true +umask = 022 +reload-on-rss = 300 + +# Allow large image uploads +#chunked-input-limit = 10485760 +buffer-size = 32768 + +http = :8000 +static-map = /static=/srv/static +static-map = /media=/srv/media + +# Ignore write errors +ignore-sigpipe = true +ignore-write-errors = true +disable-write-exception = true diff --git a/deploy/uwsgi.yml b/deploy/uwsgi.yml deleted file mode 100644 index e825878b..00000000 --- a/deploy/uwsgi.yml +++ /dev/null @@ -1,22 +0,0 @@ -uwsgi: - # Needed plugins if running against Debian uwsgi-package - # python docker image cannot use that due to linker mishaps - # plugins: python3,http - wsgi-file: kerrokantasi/wsgi.py - processes: 3 - #threads: 1 - master: true - #uid: hauki - umask: 022 - reload-on-rss: 300 - # Allow large image uploads - # chunked-input-limit: 10485760 - buffer-size: 32768 - http: :8000 - static-map: /static=/srv/static - static-map: /media=/srv/media - - # Ignore write errors - ignore-sigpipe: true - ignore-write-errors: true - disable-write-exception: true