From efb59405bdfd8d7fe88f4d253bef03178a743243 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Mon, 12 Nov 2018 06:35:34 +0100 Subject: [PATCH] allow pastes larger then a few kB, addressing supervisord warning --- entrypoint.sh | 2 +- files/nginx.conf | 1 + files/supervisord.conf | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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