Browse Source

update nextcloud dockerfile

master
Markus Bergholz 1 month ago
parent
commit
3d4703454a
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      docker/nextcloud/Dockerfile

+ 5
- 5
docker/nextcloud/Dockerfile View File

@@ -1,11 +1,11 @@
FROM nextcloud:15.0.7
FROM nextcloud:16.0.4

RUN apt update && apt upgrade -y && apt clean

#RUN sed -i 's/LogFormat "%h/LogFormat "%{X-Forwarded-For}i,%h/' /etc/apache2/apache2.conf

# change log format to json
RUN sed -i '/combined/d' /etc/apache2/apache2.conf
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
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
#RUN sed -i '/combined/d' /etc/apache2/apache2.conf
#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
#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
RUN sed -i 's/LogFormat "%h/LogFormat "%{X-Forwarded-For}i/' /etc/apache2/apache2.conf

Loading…
Cancel
Save