diff --git a/entrypoint.sh b/entrypoint.sh index be3772b..101bf2d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,5 +7,5 @@ if [ ! -f /privatebin/cfg/conf.php ]; then cp /privatebin/conf.sample.php /privatebin/cfg/conf.php fi -chown -R privatebin:privatebin /privatebin/data +chown -R privatebin:privatebin /privatebin/data /var/tmp/nginx supervisord -c /usr/local/etc/supervisord.conf diff --git a/files/nginx.conf b/files/nginx.conf index d27c8a2..4cac0c7 100644 --- a/files/nginx.conf +++ b/files/nginx.conf @@ -22,6 +22,7 @@ http { tcp_nopush on; tcp_nodelay off; server_tokens off; + client_max_body_size 10M; gzip on; gzip_comp_level 5; diff --git a/files/supervisord.conf b/files/supervisord.conf index 9bef749..3251886 100644 --- a/files/supervisord.conf +++ b/files/supervisord.conf @@ -1,4 +1,5 @@ [supervisord] +user=root nodaemon=true pidfile=/var/run/supervisord.pid logfile=/var/log/supervisord.log