瀏覽代碼

update nextcloud dockerfile

master
Markus Bergholz 2 月之前
父節點
當前提交
3d4703454a
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5
    5
      docker/nextcloud/Dockerfile

+ 5
- 5
docker/nextcloud/Dockerfile 查看文件

@@ -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…
取消
儲存