diff --git a/sddi-base/Dockerfile b/sddi-base/Dockerfile index 3ae3fb8..3ed74b1 100644 --- a/sddi-base/Dockerfile +++ b/sddi-base/Dockerfile @@ -204,6 +204,7 @@ RUN set -ex && \ # Copy init scripts and additional files COPY --chown=ckan:ckan initScripts/ ${APP_DIR}/docker-afterinit.d COPY --chown=ckan:ckan who.ini ${APP_DIR}/who.ini +COPY --chown=ckan:ckan uwsgi.conf ${APP_DIR}/uwsgi.conf RUN set -ex && \ ckan config-tool "${CKAN_INI}" "ckan.plugins = ${CKAN__PLUGINS}" && \ diff --git a/sddi-base/uwsgi.conf b/sddi-base/uwsgi.conf new file mode 100644 index 0000000..246f428 --- /dev/null +++ b/sddi-base/uwsgi.conf @@ -0,0 +1,37 @@ +[uwsgi] +socket = /tmp/uwsgi.sock +uid = ckan +gid = ckan +http = :5000 + +master = true +enable-threads = true +lazy-apps = true +gevent-early-monkey-patch = true +vacuum = true +single-interpreter= true +die-on-term = true +need-app = true +auto-procname = true + +wsgi-file = /srv/app/wsgi.py +module = wsgi:application +gevent = 2000 +callable = application +paste = config:/srv/app/production.ini +paste-logger = /srv/app/production.ini + +post-buffering = 1 +buffer-size= 12288 +max-requests = 3000 +max-worker-lifetime = 3600 +reload-on-rss = 4096 +worker-reload-mercy = 60 +socket-timeout = 300 +queue = 1000 +queue-blocksize = 204800 +static-gzip-all = true +listen = 128 +http-timeout = 1000 +http-headers-timeout = 1000 +http-connect-timeout = 1000