redirect-cached-rebuild.sh 1.18 KB
Newer Older
Klink's avatar
Klink committed
1 2 3 4 5
#!/bin/sh

DOMAINS=""

# comment this if you dont cache steam
Klink's avatar
Klink committed
6
# (note: nginx cache must also cover this)
Klink's avatar
Klink committed
7
DOMAINS="$DOMAINS cs.steampowered.com content1.steampowered.com content2.steampowered.com content3.steampowered.com content4.steampowered.com content5.steampowered.com content6.steampowered.com content7.steampowered.com content8.steampowered.com content9.steampowered.com hsar.steampowered.com.edgesuite.net akamai.steamstatic.com content-origin.steampowered.com client-download.steampowered.com steampipe.steamcontent.com steamcontent.com"
Klink's avatar
Klink committed
8
# comment this if you dont cache debian
Klink's avatar
Klink committed
9 10
# (useful read: https://wiki.debian.org/DebianGeoMirror )
DOMAINS="$DOMAINS cdn-fastly.deb.debian.org ftp.fr.debian.org ftp.de.debian.org ftp.debian.org security.debian.org"
Klink's avatar
Klink committed
11
# comment this if you dont cache devuan
Klink's avatar
Klink committed
12
DOMAINS="$DOMAINS packages.devuan.org amprolla.devuan.org"
Klink's avatar
Klink committed
13 14 15
# comment this if you dont cache ubuntu
DOMAINS="$DOMAINS fr.archive.ubuntu.com security.ubuntu.com"

Klink's avatar
Klink committed
16 17 18 19 20 21 22 23
out=redirect-cached.lua
echo "-- build by ${0}" > $out
echo "-- re-run it commenting relevant domains if you dont cache them all" >> $out
echo "return{" >> $out
for domain in $DOMAINS; do
    echo \"$domain\", >> $out
done
echo "}" >> $out
Klink's avatar
Klink committed
24 25
    
# EOF