Kaynağa Gözat

update nextcloud dockerfile

master
Markus Bergholz 2 ay önce
ebeveyn
işleme
3d4703454a
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5
    5
      docker/nextcloud/Dockerfile

+ 5
- 5
docker/nextcloud/Dockerfile Dosyayı Görüntüle

@@ -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…
İptal
Kaydet