diff --git a/Dockerfile b/Dockerfile index a6568ee..a8519e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.12 +FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.13 # set version label ARG BUILD_DATE @@ -15,14 +15,14 @@ RUN \ curl \ memcached \ nginx \ + nginx-mod-http-brotli \ + nginx-mod-http-dav-ext \ nginx-mod-http-echo \ nginx-mod-http-fancyindex \ nginx-mod-http-geoip \ nginx-mod-http-geoip2 \ nginx-mod-http-headers-more \ nginx-mod-http-image-filter \ - nginx-mod-http-lua \ - nginx-mod-http-lua-upstream \ nginx-mod-http-nchan \ nginx-mod-http-perl \ nginx-mod-http-redis2 \ @@ -76,7 +76,7 @@ RUN \ echo "**** configure nginx ****" && \ rm -f /etc/nginx/conf.d/default.conf && \ sed -i \ - 's|include /config/nginx/site-confs/\*;|include /config/nginx/site-confs/\*;\n\tlua_load_resty_core off;|g' \ + 's|include /config/nginx/site-confs/\*;|include /config/nginx/site-confs/\*;\n\t#Removed lua. Do not remove this comment|g' \ /defaults/nginx.conf # add local files diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index be7b554..c8b040d 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -1,4 +1,4 @@ -FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.12 +FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.13 # set version label ARG BUILD_DATE @@ -15,14 +15,14 @@ RUN \ curl \ memcached \ nginx \ + nginx-mod-http-brotli \ + nginx-mod-http-dav-ext \ nginx-mod-http-echo \ nginx-mod-http-fancyindex \ nginx-mod-http-geoip \ nginx-mod-http-geoip2 \ nginx-mod-http-headers-more \ nginx-mod-http-image-filter \ - nginx-mod-http-lua \ - nginx-mod-http-lua-upstream \ nginx-mod-http-nchan \ nginx-mod-http-perl \ nginx-mod-http-redis2 \ @@ -76,7 +76,7 @@ RUN \ echo "**** configure nginx ****" && \ rm -f /etc/nginx/conf.d/default.conf && \ sed -i \ - 's|include /config/nginx/site-confs/\*;|include /config/nginx/site-confs/\*;\n\tlua_load_resty_core off;|g' \ + 's|include /config/nginx/site-confs/\*;|include /config/nginx/site-confs/\*;\n\t#Removed lua. Do not remove this comment|g' \ /defaults/nginx.conf # add local files diff --git a/Dockerfile.armhf b/Dockerfile.armhf index a431607..38117aa 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -1,4 +1,4 @@ -FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm32v7-3.12 +FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm32v7-3.13 # set version label ARG BUILD_DATE @@ -15,14 +15,14 @@ RUN \ curl \ memcached \ nginx \ + nginx-mod-http-brotli \ + nginx-mod-http-dav-ext \ nginx-mod-http-echo \ nginx-mod-http-fancyindex \ nginx-mod-http-geoip \ nginx-mod-http-geoip2 \ nginx-mod-http-headers-more \ nginx-mod-http-image-filter \ - nginx-mod-http-lua \ - nginx-mod-http-lua-upstream \ nginx-mod-http-nchan \ nginx-mod-http-perl \ nginx-mod-http-redis2 \ @@ -76,7 +76,7 @@ RUN \ echo "**** configure nginx ****" && \ rm -f /etc/nginx/conf.d/default.conf && \ sed -i \ - 's|include /config/nginx/site-confs/\*;|include /config/nginx/site-confs/\*;\n\tlua_load_resty_core off;|g' \ + 's|include /config/nginx/site-confs/\*;|include /config/nginx/site-confs/\*;\n\t#Removed lua. Do not remove this comment|g' \ /defaults/nginx.conf # add local files diff --git a/README.md b/README.md index f5293c7..f2b48c1 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **09.02.21:** - Rebasing to alpine 3.13. Add nginx mods brotli and dav-ext. Remove nginx mods lua and lua-upstream (due to regression over the last couple of years). * **08.09.20:** - Add php7-xsl. * **01.06.20:** - Rebasing to alpine 3.12. * **18.04.20:** - Fix unwanted shutdown of the container. diff --git a/readme-vars.yml b/readme-vars.yml index 13cd837..f576931 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -40,6 +40,7 @@ app_setup_block: | # changelog changelogs: + - { date: "09.02.21:", desc: "Rebasing to alpine 3.13. Add nginx mods brotli and dav-ext. Remove nginx mods lua and lua-upstream (due to regression over the last couple of years)." } - { date: "08.09.20:", desc: "Add php7-xsl." } - { date: "01.06.20:", desc: "Rebasing to alpine 3.12." } - { date: "18.04.20:", desc: "Fix unwanted shutdown of the container." } diff --git a/root/etc/cont-init.d/40-config b/root/etc/cont-init.d/40-config index 1d1473e..2a7ea15 100644 --- a/root/etc/cont-init.d/40-config +++ b/root/etc/cont-init.d/40-config @@ -4,6 +4,12 @@ mkdir -p \ /config/geoip2db +# remove lua bits from nginx.conf if not done before +if ! grep -q '#Removed lua' /config/nginx/nginx.conf; then + echo "Removing lua specific info from nginx.conf" + sed -i 's|\tlua_load_resty_core off;|\t#Removed lua. Do not remove this comment|g' /config/nginx/nginx.conf +fi + # create GeoIP2 folder symlink [[ -d /var/lib/libmaxminddb ]] && [[ ! -L /var/lib/libmaxminddb ]] && \ rm -rf /var/lib/libmaxminddb