From 87874c982dcd51a906bcd1721998f8d118decb11 Mon Sep 17 00:00:00 2001 From: noogen Date: Sun, 19 May 2019 23:24:37 -0500 Subject: [PATCH] add back valid sed --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 096728f..2b86e7b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -325,9 +325,13 @@ RUN cd /tmp \ # set same upload limit for php fcgi && sed -i "s/FcgidConnectTimeout 20/FcgidMaxRequestLen 629145600\n FcgidConnectTimeout 20/" /etc/apache2/mods-available/fcgid.conf \ -# fix docker nginx ips +# sed for docker single IP + && sed -i -e "s/\%ip\%\:\%proxy\_port\%/\%proxy\_port\%/g" /usr/local/vesta/data/templates/web/nginx/*.tpl \ + && sed -i -e "s/\%ip\%\:\%proxy\_ssl\_port\%/\%proxy\_ssl\_port\%/g" /usr/local/vesta/data/templates/web/nginx/*.stpl \ +# sed to include additional conf && sed -i -e "s/ include \%home\%\/\%user\%\/conf\/web\/nginx\.\%domain\%/ include \%home\%\/\%user\%\/web\/\%domain\%\/private\/*.conf;\n include \%home\%\/\%user\%\/conf\/web\/nginx\.\%domain\%/g" /usr/local/vesta/data/templates/web/nginx/*.tpl \ && sed -i -e "s/ include \%home\%\/\%user\%\/conf\/web\/snginx\.\%domain\%/ include \%home\%\/\%user\%\/web\/\%domain\%\/private\/*.conf;\n include \%home\%\/\%user\%\/conf\/web\/snginx\.\%domain\%/g" /usr/local/vesta/data/templates/web/nginx/*.stpl \ +# patch for logging remote ip && bash /usr/local/vesta/upd/switch_rpath.sh \ # add multiple php fcgi and custom templates