You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 918B

1234567891011
  1. FROM nextcloud:16.0.4
  2. RUN apt update && apt upgrade -y && apt clean
  3. #RUN sed -i 's/LogFormat "%h/LogFormat "%{X-Forwarded-For}i,%h/' /etc/apache2/apache2.conf
  4. # change log format to json
  5. #RUN sed -i '/combined/d' /etc/apache2/apache2.conf
  6. #RUN echo 'LogFormat "{ \"time\":\"%{%Y-%m-%d}tT%{%T}t.%{msec_frac}tZ\", \"remoteIP\":\"%{X-Forwarded-For}i\", \"request\":\"%U\", \"query\":\"%q\", \"method\":\"%m\", \"status\":\"%>s\", \"userAgent\":\"%{User-agent}i\", \"referer\":\"%{Referer}i\" }" combined' >> /etc/apache2/apache2.conf
  7. #RUN echo 'LogFormat "{ \"time\":\"%{%Y-%m-%d}tT%{%T}t.%{msec_frac}tZ\", \"remoteIP\":\"%{X-Forwarded-For}i\", \"request\":\"%U\", \"query\":\"%q\", \"method\":\"%m\", \"status\":\"%>s\", \"userAgent\":\"%{User-agent}i\", \"referer\":\"%{Referer}i\" }" vhost_combined' >> /etc/apache2/apache2.conf
  8. RUN sed -i 's/LogFormat "%h/LogFormat "%{X-Forwarded-For}i/' /etc/apache2/apache2.conf