Skip to content

Commit

Permalink
Merge pull request #130 from Suwayomi/main
Browse files Browse the repository at this point in the history
ipv6 resolvers fix
  • Loading branch information
Robonau authored Jan 17, 2024
2 parents 21ecf26 + 175a018 commit 6a0a53c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
ports:
- '9013:8080'
environment:
- suwayomi=http://suwayomi:4567/
- suwayomi=https://tachidesk.robocloud.win/
# will proxy the suwayomi server to the UI
# if you plan on proxying it externally then this is unnecessary
restart: unless-stopped
Expand Down
8 changes: 7 additions & 1 deletion set-env-variable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@

TMP=$(echo "$suwayomi" | sed "s@/\$@@")
TMP2=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf)
sed -i "s@resolverPLACEHOLDER@$TMP2@" /etc/nginx/conf.d/default.conf
regex='^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}$'
if [[ $TMP2 =~ $regex ]]; then
sed -i "s@resolverPLACEHOLDER@[$TMP2]@" /etc/nginx/conf.d/default.conf
else
sed -i "s@resolverPLACEHOLDER@$TMP2@" /etc/nginx/conf.d/default.conf
fi

sed -i "s@PLACEHOLDER@$TMP@" /etc/nginx/conf.d/default.conf

0 comments on commit 6a0a53c

Please sign in to comment.