mirror of
https://github.com/linuxserver/docker-swag.git
synced 2026-05-01 00:14:28 +09:00
Compare commits
3 Commits
1.15.0-ls6
...
1.15.0-ls6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
413942d1fe | ||
|
|
a8f98a205f | ||
|
|
aa94da0665 |
@@ -330,6 +330,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **20.05.21:** - Modify resolver.conf generation to detect and ignore ipv6.
|
||||||
* **14.05.21:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf, ssl.conf, proxy.conf, and the default site-conf - Rework nginx.conf to be inline with alpine upstream and relocate lines from other files. Use linuxserver.io wheel index for pip packages. Switch to using [ffdhe4096](https://ssl-config.mozilla.org/ffdhe4096.txt) for `dhparams.pem` per [RFC7919](https://datatracker.ietf.org/doc/html/rfc7919). Added `worker_processes.conf`, which sets the number of nginx workers, and `resolver.conf`, which sets the dns resolver. Both conf files are auto-generated only on first start and can be user modified later.
|
* **14.05.21:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf, ssl.conf, proxy.conf, and the default site-conf - Rework nginx.conf to be inline with alpine upstream and relocate lines from other files. Use linuxserver.io wheel index for pip packages. Switch to using [ffdhe4096](https://ssl-config.mozilla.org/ffdhe4096.txt) for `dhparams.pem` per [RFC7919](https://datatracker.ietf.org/doc/html/rfc7919). Added `worker_processes.conf`, which sets the number of nginx workers, and `resolver.conf`, which sets the dns resolver. Both conf files are auto-generated only on first start and can be user modified later.
|
||||||
* **21.04.21:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) authelia-server.conf and authelia-location.conf - Add remote name/email headers and pass http method.
|
* **21.04.21:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) authelia-server.conf and authelia-location.conf - Add remote name/email headers and pass http method.
|
||||||
* **12.04.21:** - Add php7-gmp and php7-pecl-mailparse.
|
* **12.04.21:** - Add php7-gmp and php7-pecl-mailparse.
|
||||||
|
|||||||
@@ -94,26 +94,26 @@ ncurses-libs-6.2_p20210109-r0
|
|||||||
ncurses-terminfo-base-6.2_p20210109-r0
|
ncurses-terminfo-base-6.2_p20210109-r0
|
||||||
nettle-3.7.2-r0
|
nettle-3.7.2-r0
|
||||||
nghttp2-libs-1.42.0-r1
|
nghttp2-libs-1.42.0-r1
|
||||||
nginx-1.18.0-r13
|
nginx-1.18.0-r14
|
||||||
nginx-mod-devel-kit-1.18.0-r13
|
nginx-mod-devel-kit-1.18.0-r14
|
||||||
nginx-mod-http-brotli-1.18.0-r13
|
nginx-mod-http-brotli-1.18.0-r14
|
||||||
nginx-mod-http-dav-ext-1.18.0-r13
|
nginx-mod-http-dav-ext-1.18.0-r14
|
||||||
nginx-mod-http-echo-1.18.0-r13
|
nginx-mod-http-echo-1.18.0-r14
|
||||||
nginx-mod-http-fancyindex-1.18.0-r13
|
nginx-mod-http-fancyindex-1.18.0-r14
|
||||||
nginx-mod-http-geoip2-1.18.0-r13
|
nginx-mod-http-geoip2-1.18.0-r14
|
||||||
nginx-mod-http-headers-more-1.18.0-r13
|
nginx-mod-http-headers-more-1.18.0-r14
|
||||||
nginx-mod-http-image-filter-1.18.0-r13
|
nginx-mod-http-image-filter-1.18.0-r14
|
||||||
nginx-mod-http-nchan-1.18.0-r13
|
nginx-mod-http-nchan-1.18.0-r14
|
||||||
nginx-mod-http-perl-1.18.0-r13
|
nginx-mod-http-perl-1.18.0-r14
|
||||||
nginx-mod-http-redis2-1.18.0-r13
|
nginx-mod-http-redis2-1.18.0-r14
|
||||||
nginx-mod-http-set-misc-1.18.0-r13
|
nginx-mod-http-set-misc-1.18.0-r14
|
||||||
nginx-mod-http-upload-progress-1.18.0-r13
|
nginx-mod-http-upload-progress-1.18.0-r14
|
||||||
nginx-mod-http-xslt-filter-1.18.0-r13
|
nginx-mod-http-xslt-filter-1.18.0-r14
|
||||||
nginx-mod-mail-1.18.0-r13
|
nginx-mod-mail-1.18.0-r14
|
||||||
nginx-mod-rtmp-1.18.0-r13
|
nginx-mod-rtmp-1.18.0-r14
|
||||||
nginx-mod-stream-1.18.0-r13
|
nginx-mod-stream-1.18.0-r14
|
||||||
nginx-mod-stream-geoip2-1.18.0-r13
|
nginx-mod-stream-geoip2-1.18.0-r14
|
||||||
nginx-vim-1.18.0-r13
|
nginx-vim-1.18.0-r14
|
||||||
npth-1.6-r0
|
npth-1.6-r0
|
||||||
oniguruma-6.9.6-r0
|
oniguruma-6.9.6-r0
|
||||||
openssl-1.1.1k-r0
|
openssl-1.1.1k-r0
|
||||||
|
|||||||
@@ -151,6 +151,7 @@ app_setup_nginx_reverse_proxy_block: ""
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "20.05.21:", desc: "Modify resolver.conf generation to detect and ignore ipv6." }
|
||||||
- { date: "14.05.21:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf, ssl.conf, proxy.conf, and the default site-conf - Rework nginx.conf to be inline with alpine upstream and relocate lines from other files. Use linuxserver.io wheel index for pip packages. Switch to using [ffdhe4096](https://ssl-config.mozilla.org/ffdhe4096.txt) for `dhparams.pem` per [RFC7919](https://datatracker.ietf.org/doc/html/rfc7919). Added `worker_processes.conf`, which sets the number of nginx workers, and `resolver.conf`, which sets the dns resolver. Both conf files are auto-generated only on first start and can be user modified later." }
|
- { date: "14.05.21:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf, ssl.conf, proxy.conf, and the default site-conf - Rework nginx.conf to be inline with alpine upstream and relocate lines from other files. Use linuxserver.io wheel index for pip packages. Switch to using [ffdhe4096](https://ssl-config.mozilla.org/ffdhe4096.txt) for `dhparams.pem` per [RFC7919](https://datatracker.ietf.org/doc/html/rfc7919). Added `worker_processes.conf`, which sets the number of nginx workers, and `resolver.conf`, which sets the dns resolver. Both conf files are auto-generated only on first start and can be user modified later." }
|
||||||
- { date: "21.04.21:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) authelia-server.conf and authelia-location.conf - Add remote name/email headers and pass http method." }
|
- { date: "21.04.21:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) authelia-server.conf and authelia-location.conf - Add remote name/email headers and pass http method." }
|
||||||
- { date: "12.04.21:", desc: "Add php7-gmp and php7-pecl-mailparse." }
|
- { date: "12.04.21:", desc: "Add php7-gmp and php7-pecl-mailparse." }
|
||||||
|
|||||||
@@ -81,9 +81,17 @@ cp /config/fail2ban/jail.local /etc/fail2ban/jail.local
|
|||||||
[[ ! -f /config/www/502.html ]] &&
|
[[ ! -f /config/www/502.html ]] &&
|
||||||
cp /defaults/502.html /config/www/502.html
|
cp /defaults/502.html /config/www/502.html
|
||||||
|
|
||||||
# Set resolver
|
# Set resolver, ignore ipv6 addresses
|
||||||
if ! grep -q 'resolver' /config/nginx/resolver.conf; then
|
if ! grep -q 'resolver' /config/nginx/resolver.conf; then
|
||||||
RESOLVER=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf)
|
RESOLVERRAW=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf)
|
||||||
|
for i in ${RESOLVERRAW}; do
|
||||||
|
if [ $(awk -F ':' '{print NF-1}' <<< ${i}) -le 2 ]; then
|
||||||
|
RESOLVER="${RESOLVER} ${i}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ -z "${RESOLVER}" ]; then
|
||||||
|
RESOLVER="127.0.0.11"
|
||||||
|
fi
|
||||||
echo "Setting resolver to ${RESOLVER}"
|
echo "Setting resolver to ${RESOLVER}"
|
||||||
echo -e "# This file is auto-generated only on first start, based on the container's /etc/resolv.conf file. Feel free to modify it as you wish.\n\nresolver ${RESOLVER} valid=30s;" > /config/nginx/resolver.conf
|
echo -e "# This file is auto-generated only on first start, based on the container's /etc/resolv.conf file. Feel free to modify it as you wish.\n\nresolver ${RESOLVER} valid=30s;" > /config/nginx/resolver.conf
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user