Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions overlay/etc/nginx/sites-available/10_generic.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

server {
listen 80 reuseport;
listen [::]:80 reuseport;

access_log /data/logs/access.log cachelog;
error_log /data/logs/error.log;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver UPSTREAM_DNS ipv6=off;
resolver UPSTREAM_DNS;

location / {

Expand Down
6 changes: 6 additions & 0 deletions overlay/hooks/entrypoint-pre.d/10_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ sed -i "s/CACHE_DISK_SIZE/${CACHE_DISK_SIZE}/" /etc/nginx/conf.d/20_proxy_cache_
sed -i "s/CACHE_MAX_AGE/${CACHE_MAX_AGE}/" /etc/nginx/sites-available/generic.conf.d/root/20_cache.conf
sed -i "s/UPSTREAM_DNS/${UPSTREAM_DNS}/" /etc/nginx/sites-available/generic.conf.d/10_generic.conf

if ! [ -z "${ADDITIONAL_IPS}" ]; then
for IP in ${ADDITIONAL_IPS}; do
echo ";## Additional cache $IP"
ip a a $IP dev eth0
done
fi