From 95bc778ee0cb4159bf18303e683cd4a14ad0e440 Mon Sep 17 00:00:00 2001 From: Kazunori Kimura Date: Fri, 31 Mar 2023 03:00:49 +0900 Subject: [PATCH] Silence "CRIT unixServer" warning from supervisord Silence the message like below: CRIT Server 'unix_http_server' running without any HTTP authentication checking Reference: https://github.com/Supervisor/supervisor/issues/717#issuecomment-176860145 https://github.com/sameersbn/docker-redmine/commit/0fb84b9 --- assets/build/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/build/install.sh b/assets/build/install.sh index 774aaa6a..0331e1f4 100755 --- a/assets/build/install.sh +++ b/assets/build/install.sh @@ -251,6 +251,10 @@ echo "UseDNS no" >> /etc/ssh/sshd_config # move supervisord.log file to ${GITLAB_LOG_DIR}/supervisor/ sed -i "s|^[#]*logfile=.*|logfile=${GITLAB_LOG_DIR}/supervisor/supervisord.log ;|" /etc/supervisor/supervisord.conf +# silence "CRIT Server 'unix_http_server' running without any HTTP authentication checking" message +# https://github.com/Supervisor/supervisor/issues/717 +sed -i '/\.sock/a password=dummy' /etc/supervisor/supervisord.conf +sed -i '/\.sock/a username=dummy' /etc/supervisor/supervisord.conf # prevent confusing warning "CRIT Supervisor running as root" by clarify run as root # user not defined in supervisord.conf by default, so just append it after [supervisord] block sed -i "/\[supervisord\]/a user=root" /etc/supervisor/supervisord.conf