Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Minor cleanup in confs to make them easier to maintain
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanEwen committed Nov 15, 2017
1 parent 28b3e68 commit ebe998f
Show file tree
Hide file tree
Showing 16 changed files with 74 additions and 21 deletions.
5 changes: 4 additions & 1 deletion data/conf/arenanet.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ proxy_cache_path /cache/arenanet keys_zone=arenanet:256m levels=1:2:2 inactive=3

server {
listen 80;
server_name assetcdn.101.arenanetworks.com assetcdn.102.arenanetworks.com assetcdn.103.arenanetworks.com;
server_name
assetcdn.101.arenanetworks.com
assetcdn.102.arenanetworks.com
assetcdn.103.arenanetworks.com;

access_log /var/log/nginx/arenanet-access.log;
error_log /var/log/nginx/arenanet-error.log error;
Expand Down
9 changes: 8 additions & 1 deletion data/conf/blizzard.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ proxy_cache_path /cache/blizzard keys_zone=blizzard:256m levels=1:2:2 inactive=3

server {
listen 80;
server_name dist.blizzard.com.edgesuite.net llnw.blizzard.com dist.blizzard.com blizzard.vo.llnwd.net ~^blzddist.*\.akamaihd\.net$ level3.blizzard.com edge.blizzard.top.comcast.net;
server_name
dist.blizzard.com.edgesuite.net
llnw.blizzard.com
dist.blizzard.com
blizzard.vo.llnwd.net
~^blzddist.*\.akamaihd\.net$
edge.blizzard.top.comcast.net
level3.blizzard.com;

access_log /var/log/nginx/blizzard-access.log;
error_log /var/log/nginx/blizzard-error.log error;
Expand Down
7 changes: 6 additions & 1 deletion data/conf/epic.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ proxy_cache_path /cache/epic keys_zone=epic:256m levels=1:2:2 inactive=365d;

server {
listen 80;
server_name download.epicgames.com download1.epicgames.com download2.epicgames.com download3.epicgames.com download4.epicgames.com;
server_name
download.epicgames.com
download1.epicgames.com
download2.epicgames.com
download3.epicgames.com
download4.epicgames.com;

access_log /var/log/nginx/epic-access.log;
error_log /var/log/nginx/epic-error.log error;
Expand Down
2 changes: 1 addition & 1 deletion data/conf/frontier.dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
address=/cdn.zaonce.net/NGINX_IP
address=/.cdn.zaonce.net/NGINX_IP
2 changes: 1 addition & 1 deletion data/conf/frontier.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ proxy_cache_path /cache/frontier keys_zone=frontier:256m levels=1:2:2 inactive=3

server {
listen 80;
server_name *.cdn.zaonce.net cdn.zaonce.net;
server_name .cdn.zaonce.net;

access_log /var/log/nginx/frontier-access.log;
error_log /var/log/nginx/frontier-error.log error;
Expand Down
4 changes: 3 additions & 1 deletion data/conf/hirez.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ proxy_cache_path /cache/hirez keys_zone=hirez:256m levels=1:2:2 inactive=365d;

server {
listen 80;
server_name hirez.http.internapcdn.net *.hwcdn.net;
server_name
hirez.http.internapcdn.net
.hwcdn.net;

access_log /var/log/nginx/hirez-access.log;
error_log /var/log/nginx/hirez-error.log error;
Expand Down
1 change: 0 additions & 1 deletion data/conf/microsoft.dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
address=/.download.windowsupdate.com/NGINX_IP
address=/download.windowsupdate.com/NGINX_IP
2 changes: 1 addition & 1 deletion data/conf/microsoft.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ proxy_cache_path /cache/microsoft keys_zone=microsoft:256m levels=1:2:2 inactive

server {
listen 80;
server_name *.download.windowsupdate.com download.windowsupdate.com;
server_name .download.windowsupdate.com;

access_log /var/log/nginx/microsoft-access.log;
error_log /var/log/nginx/microsoft-error.log error;
Expand Down
7 changes: 6 additions & 1 deletion data/conf/origin.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ proxy_cache_path /cache/origin keys_zone=origin:256m levels=1:2:2 inactive=365d;

server {
listen 80;
server_name download.origin.com origin-a.akamaihd.net origin-b.akamaihd.net akamai.cdn.ea.com lvlt.cdn.ea.com;
server_name
download.origin.com
origin-a.akamaihd.net
origin-b.akamaihd.net
akamai.cdn.ea.com
lvlt.cdn.ea.com;

access_log /var/log/nginx/origin-access.log;
error_log /var/log/nginx/origin-error.log error;
Expand Down
4 changes: 2 additions & 2 deletions data/conf/playstation.dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
address=/.dl.playstation.net/NGINX_IP
address=/.dl.playstation.net.edgesuite.net/NGINX_IP
address=/dl.playstation.net/NGINX_IP
address=/dl.playstation.net.edgesuite.net/NGINX_IP
address=/pls.patch.station.sony.com/NGINX_IP
address=/gs2.sonycoment.loris-e.llnwd.net/NGINX_IP
address=/.update.playstation.net/NGINX_IP
address=/gs2.ww.prod.dl.playstation.net/NGINX_IP
address=/gs2.sonycoment.loris-e.llnwd.net/NGINX_IP
10 changes: 8 additions & 2 deletions data/conf/playstation.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ proxy_cache_path /cache/playstation keys_zone=playstation:256m levels=1:2:2 inac

server {
listen 80;
server_name *.dl.playstation.net *.dl.playstation.net.edgesuite.net dl.playstation.net dl.playstation.net.edgesuite.net pls.patch.station.sony.com gs2.sonycoment.loris-e.llnwd.net *.update.playstation.net;
# // gs2.ww.prod.dl.playstation.net and gs2.sonycoment.loris-e.llnwd.net are for PS4
server_name
.dl.playstation.net
.dl.playstation.net.edgesuite.net
pls.patch.station.sony.com
gs2.sonycoment.loris-e.llnwd.net
.update.playstation.net
gs2.ww.prod.dl.playstation.net
gs2.sonycoment.loris-e.llnwd.net;

access_log /var/log/nginx/playstation-access.log;
error_log /var/log/nginx/playstation-error.log error;
Expand Down
8 changes: 4 additions & 4 deletions data/conf/steam.dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
address=/client-download.steampowered.com/NGINX_IP
address=/content-origin.steampowered.com/NGINX_IP
address=/content1.steampowered.com/NGINX_IP
address=/content2.steampowered.com/NGINX_IP
address=/content3.steampowered.com/NGINX_IP
Expand All @@ -8,9 +10,7 @@ address=/content7.steampowered.com/NGINX_IP
address=/content8.steampowered.com/NGINX_IP
address=/content9.steampowered.com/NGINX_IP
address=/content0.steampowered.com/NGINX_IP
address=/cs.steampowered.com/NGINX_IP
address=/steamcontent.com/NGINX_IP
address=/client-download.steampowered.com/NGINX_IP
address=/.cs.steampowered.com/NGINX_IP
address=/.hsar.steampowered.com.edgesuite.net/NGINX_IP
address=/.akamai.steamstatic.com/NGINX_IP
address=/content-origin.steampowered.com/NGINX_IP
address=/.steamcontent.com/NGINX_IP
18 changes: 17 additions & 1 deletion data/conf/steam.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,23 @@ proxy_cache_path /cache/steam keys_zone=steam:256m levels=1:2:2 inactive=365d;

server {
listen 80;
server_name ~^(content[0-9]+)\.steampowered\.com$ ~^.*\.cs\.steampowered\.com$ client-download.steampowered.com *.hsar.steampowered.com.edgesuite.net *.akamai.steamstatic.com content-origin.steampowered.com *.steamcontent.com;
server_name
client-download.steampowered.com
content-origin.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
content0.steampowered.com
.cs.steampowered.com
.hsar.steampowered.com.edgesuite.net
.akamai.steamstatic.com
.steamcontent.com;

access_log /var/log/nginx/steam-access.log;
error_log /var/log/nginx/steam-error.log error;
Expand Down
2 changes: 1 addition & 1 deletion data/conf/uplay.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ proxy_cache_path /cache/uplay keys_zone=uplay:256m levels=1:2:2 inactive=365d;

server {
listen 80;
server_name *.cdn.ubi.com;
server_name .cdn.ubi.com;

access_log /var/log/nginx/uplay-access.log;
error_log /var/log/nginx/uplay-error.log error;
Expand Down
5 changes: 4 additions & 1 deletion data/conf/wargaming.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ proxy_cache_path /cache/wargaming keys_zone=wargaming:256m levels=1:2:2 inactive

server {
listen 80;
server_name dl.wargaming.net dl2.wargaming.net wg.gcdn.co;
server_name
dl.wargaming.net
dl2.wargaming.net
wg.gcdn.co;

access_log /var/log/nginx/wargaming-access.log;
error_log /var/log/nginx/wargaming-error.log error;
Expand Down
9 changes: 8 additions & 1 deletion data/conf/xbox.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ proxy_cache_path /cache/xbox keys_zone=xbox:256m levels=1:2:2 inactive=365d;

server {
listen 80;
server_name dlassets.xboxlive.com *.xboxone.loris.llnwd.net xboxone.vo.llnwd.net images-eds.xboxlive.com xbox-mbr.xboxlive.com assets1.xboxlive.com.nsatc.net assets1.xboxlive.com;
server_name
dlassets.xboxlive.com
.xboxone.loris.llnwd.net
xboxone.vo.llnwd.net
images-eds.xboxlive.com
xbox-mbr.xboxlive.com
assets1.xboxlive.com.nsatc.net
assets1.xboxlive.com;

access_log /var/log/nginx/xbox-access.log;
error_log /var/log/nginx/xbox-error.log error;
Expand Down

0 comments on commit ebe998f

Please sign in to comment.