1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-05 04:40:11 +01:00

Merge pull request #985 from dalf/docker-log

docker: log to stdout
This commit is contained in:
Paul Braeuning 2022-03-19 17:10:59 +01:00 committed by GitHub
commit 27adcc7037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 10 deletions

View File

@ -3,7 +3,6 @@ ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.
EXPOSE 8080
VOLUME /etc/searx
VOLUME /etc/searxng
VOLUME /var/log/uwsgi
ARG SEARXNG_GID=977
ARG SEARXNG_UID=977

View File

@ -165,8 +165,6 @@ if [ $DRY_RUN -eq 1 ]; then
exit
fi
touch /var/run/uwsgi-logrotate
chown -R searxng:searxng /var/log/uwsgi /var/run/uwsgi-logrotate
unset MORTY_KEY
# Start uwsgi

View File

@ -27,18 +27,13 @@ chdir = /usr/local/searxng/searx/
# automatically set processes name to something meaningful
auto-procname = true
# Disable logging for privacy
# Disable request logging for privacy
disable-logging = true
log-5xx = true
# Set the max size of a request (request-body excluded)
buffer-size = 8192
# But keep errors for 2 days
touch-logrotate = /run/uwsgi-logrotate
unique-cron = 15 0 -1 -1 -1 { touch /run/uwsgi-logrotate }
log-backupname = /var/log/uwsgi/uwsgi.log.1
logto = /var/log/uwsgi/uwsgi.log
# No keep alive
# See https://github.com/searx/searx-docker/issues/24
add-header = Connection: close