Skip to content

Commit

Permalink
Merge pull request #1688 from jlesage/resolvers-fix
Browse files Browse the repository at this point in the history
Fixed generation of resolvers.conf.
  • Loading branch information
jc21 authored Jan 2, 2022
2 parents a082ec0 + 849bdcd commit 7e451bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/rootfs/etc/services.d/nginx/run
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ chown root /tmp/nginx

# Dynamically generate resolvers file, if resolver is IPv6, enclose in `[]`
# thanks @tfmm
echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print ($2 ~ ":")? "["$2"]": $2}' /etc/resolv.conf);" > /etc/nginx/conf.d/include/resolvers.conf
echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" { sub(/%.*$/,"",$2); print ($2 ~ ":")? "["$2"]": $2}' /etc/resolv.conf);" > /etc/nginx/conf.d/include/resolvers.conf

# Generate dummy self-signed certificate.
if [ ! -f /data/nginx/dummycert.pem ] || [ ! -f /data/nginx/dummykey.pem ]
Expand Down

0 comments on commit 7e451bc

Please sign in to comment.