diff --git a/pdns-admin-uwsgi-ngoduykhanh/Dockerfile b/pdns-admin-uwsgi-ngoduykhanh/Dockerfile index ded1ab9..1927a11 100644 --- a/pdns-admin-uwsgi-ngoduykhanh/Dockerfile +++ b/pdns-admin-uwsgi-ngoduykhanh/Dockerfile @@ -10,8 +10,10 @@ EXPOSE 9494 VOLUME [ "/opt/powerdns-admin/upload" ] COPY docker-entrypoint.sh / -COPY pdns-admin.ini /etc/uwsgi.d/ -RUN chown uwsgi: /etc/uwsgi.d/pdns-admin.ini +COPY pdns-admin.ini /etc/uwsgi.ini +RUN chown uwsgi: /etc/uwsgi.ini + +ENV FLASK_APP=/opt/powerdns-admin/app/__init__.py ENTRYPOINT [ "/docker-entrypoint.sh" ] diff --git a/pdns-admin-uwsgi-ngoduykhanh/pdns-admin.ini b/pdns-admin-uwsgi-ngoduykhanh/pdns-admin.ini index 10986e7..20224a1 100644 --- a/pdns-admin-uwsgi-ngoduykhanh/pdns-admin.ini +++ b/pdns-admin-uwsgi-ngoduykhanh/pdns-admin.ini @@ -1,4 +1,9 @@ [uwsgi] +strict = true +master = true +die-on-term = true +need-app = true + plugins = python3 uid = uwsgi @@ -13,7 +18,7 @@ callable = app vacuum = true harakiri = 20 -buffer-size = 8192 +buffer-size = 32768 post-buffering = 8192 socket = 0.0.0.0:9494 pidfile = /run/uwsgi/%n.pid