Skip to content

Commit 0a32a84

Browse files
authored
Merge pull request #80 from linuxserver/master-3.13
Rebase to 3.13, add brotli and dav-ext, remove lua
2 parents d7ce59b + e7b5816 commit 0a32a84

File tree

7 files changed

+25
-14
lines changed

7 files changed

+25
-14
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.12
1+
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.13
22

33
# set version label
44
ARG BUILD_DATE
@@ -9,11 +9,12 @@ LABEL maintainer="aptalca"
99

1010
# environment settings
1111
ENV DHLEVEL=2048 ONLY_SUBDOMAINS=false AWS_CONFIG_FILE=/config/dns-conf/route53.ini
12-
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 CRYPTOGRAPHY_DONT_BUILD_RUST=true
12+
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
1313

1414
RUN \
1515
echo "**** install build packages ****" && \
1616
apk add --no-cache --virtual=build-dependencies \
17+
cargo \
1718
g++ \
1819
gcc \
1920
libffi-dev \
@@ -26,13 +27,13 @@ RUN \
2627
gnupg \
2728
memcached \
2829
nginx \
30+
nginx-mod-http-brotli \
31+
nginx-mod-http-dav-ext \
2932
nginx-mod-http-echo \
3033
nginx-mod-http-fancyindex \
3134
nginx-mod-http-geoip2 \
3235
nginx-mod-http-headers-more \
3336
nginx-mod-http-image-filter \
34-
nginx-mod-http-lua \
35-
nginx-mod-http-lua-upstream \
3637
nginx-mod-http-nchan \
3738
nginx-mod-http-perl \
3839
nginx-mod-http-redis2 \

Dockerfile.aarch64

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.12
1+
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.13
22

33
# set version label
44
ARG BUILD_DATE
@@ -9,11 +9,12 @@ LABEL maintainer="aptalca"
99

1010
# environment settings
1111
ENV DHLEVEL=2048 ONLY_SUBDOMAINS=false AWS_CONFIG_FILE=/config/dns-conf/route53.ini
12-
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 CRYPTOGRAPHY_DONT_BUILD_RUST=true
12+
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
1313

1414
RUN \
1515
echo "**** install build packages ****" && \
1616
apk add --no-cache --virtual=build-dependencies \
17+
cargo \
1718
g++ \
1819
gcc \
1920
libffi-dev \
@@ -26,13 +27,13 @@ RUN \
2627
gnupg \
2728
memcached \
2829
nginx \
30+
nginx-mod-http-brotli \
31+
nginx-mod-http-dav-ext \
2932
nginx-mod-http-echo \
3033
nginx-mod-http-fancyindex \
3134
nginx-mod-http-geoip2 \
3235
nginx-mod-http-headers-more \
3336
nginx-mod-http-image-filter \
34-
nginx-mod-http-lua \
35-
nginx-mod-http-lua-upstream \
3637
nginx-mod-http-nchan \
3738
nginx-mod-http-perl \
3839
nginx-mod-http-redis2 \

Dockerfile.armhf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm32v7-3.12
1+
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm32v7-3.13
22

33
# set version label
44
ARG BUILD_DATE
@@ -9,11 +9,12 @@ LABEL maintainer="aptalca"
99

1010
# environment settings
1111
ENV DHLEVEL=2048 ONLY_SUBDOMAINS=false AWS_CONFIG_FILE=/config/dns-conf/route53.ini
12-
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 CRYPTOGRAPHY_DONT_BUILD_RUST=true
12+
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
1313

1414
RUN \
1515
echo "**** install build packages ****" && \
1616
apk add --no-cache --virtual=build-dependencies \
17+
cargo \
1718
g++ \
1819
gcc \
1920
libffi-dev \
@@ -26,13 +27,13 @@ RUN \
2627
gnupg \
2728
memcached \
2829
nginx \
30+
nginx-mod-http-brotli \
31+
nginx-mod-http-dav-ext \
2932
nginx-mod-http-echo \
3033
nginx-mod-http-fancyindex \
3134
nginx-mod-http-geoip2 \
3235
nginx-mod-http-headers-more \
3336
nginx-mod-http-image-filter \
34-
nginx-mod-http-lua \
35-
nginx-mod-http-lua-upstream \
3637
nginx-mod-http-nchan \
3738
nginx-mod-http-perl \
3839
nginx-mod-http-redis2 \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
326326

327327
## Versions
328328

329+
* **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).
329330
* **26.01.21:** - Add support for hetzner dns validation.
330331
* **20.01.21:** - Add check for ZeroSSL EAB retrieval.
331332
* **08.01.21:** - Add support for getting certs from [ZeroSSL](https://zerossl.com/) via optional `CERTPROVIDER` env var. Update aliyun, domeneshop, inxw and transip dns plugins with the new plugin names. Hide `donoteditthisfile.conf` because users were editing it despite its name. Suppress harmless error when no proxy confs are enabled.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ app_setup_nginx_reverse_proxy_block: ""
151151

152152
# changelog
153153
changelogs:
154+
- { 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)." }
154155
- { date: "26.01.21:", desc: "Add support for hetzner dns validation." }
155156
- { date: "20.01.21:", desc: "Add check for ZeroSSL EAB retrieval." }
156157
- { date: "08.01.21:", desc: "Add support for getting certs from [ZeroSSL](https://zerossl.com/) via optional `CERTPROVIDER` env var. Update aliyun, domeneshop, inxw and transip dns plugins with the new plugin names. Hide `donoteditthisfile.conf` because users were editing it despite its name. Suppress harmless error when no proxy confs are enabled." }

root/defaults/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2020/10/04 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx.conf
1+
## Version 2021/02/09 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx.conf
22

33
user abc;
44
worker_processes 4;
@@ -85,7 +85,7 @@ http {
8585
##
8686
include /etc/nginx/conf.d/*.conf;
8787
include /config/nginx/site-confs/*;
88-
lua_load_resty_core off;
88+
#Removed lua. Do not remove this comment
8989

9090
##
9191
# Geoip2 config

root/etc/cont-init.d/50-config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ cp /config/fail2ban/jail.local /etc/fail2ban/jail.local
8181
[[ ! -f /config/www/502.html ]] &&
8282
cp /defaults/502.html /config/www/502.html
8383

84+
# remove lua bits from nginx.conf if not done before
85+
if ! grep -q '#Removed lua' /config/nginx/nginx.conf; then
86+
echo "Removing lua specific info from nginx.conf"
87+
sed -i 's|\tlua_load_resty_core off;|\t#Removed lua. Do not remove this comment|g' /config/nginx/nginx.conf
88+
fi
89+
8490
# copy pre-generated dhparams or generate if needed
8591
[[ ! -f /config/nginx/dhparams.pem ]] && \
8692
cp /defaults/dhparams.pem /config/nginx/dhparams.pem

0 commit comments

Comments
 (0)