bntjah / lancache

Improve download speeds and reduce strain on your Internet connection at LAN parties. Locally cache game installs and updates from the largest distributors: Steam, RIOT, Blizard, Hirez, Origin, Sony, Microsoft, Tera, GOG, ArenaNetworks, WarGaming, and Uplay. Super easy to setup with auto installer script!
174 stars 44 forks source link

ArenaNetworks Games #8

Closed nexusofdoom closed 8 years ago

nexusofdoom commented 8 years ago

working on getting Guildwars2 working it should work with there other games that they have testing now.. it looks like it will be good to go.

address=/.ArenaNetworks.com/x.x.x.x

nexusofdoom commented 8 years ago

Arenanetworks Updates

server { listen lancache-arenanetworks deferred default; servername arenanetworks ;

DNS entries: .ArenaNetworks.com

access_log /srv/lancache/logs/lancache-arenanetworks-access.log main buffer=128k flush=1m; access_log /srv/lancache/logs/lancache-arenanetworks-keys.log keys_default buffer=128k flush=1m; error_log /srv/lancache/logs/lancache-arenanetworks-error.log;

# Default Node
include lancache/resolver;
#include lancache/cache-key-default;

location / {
        proxy_cache arenanetworks;
        proxy_set_header Range $http_range;
        proxy_set_header If-Range $http_if_range;
        proxy_cache_key "$server_name$request_uri $http_range";
        proxy_cache_valid 206 90d;
        include lancache/proxy-cache;
}

}

nexusofdoom commented 8 years ago

current config

Arenanetworks Updates

server { listen lancache-arenanetworks deferred default; servername arenanetworks ;

DNS entries:

    # lancache-
    access_log /srv/lancache/logs/lancache-arenanetworks-access.log main buffer=128k flush=1m;
    access_log /srv/lancache/logs/lancache-arenanetworks-keys.log keys_default buffer=128k flush=1m;
    error_log /srv/lancache/logs/lancache-arenanetworks-error.log;
# Default Node
include lancache/resolver;
include lancache/cache-key-default;

    location / {
            # Currently Origin:
            # * Blocks caching so we have to ignore Expires and Cache-Control.
            # * Puts sauth=<authkey> in the query string so we use $uri instead of $request_uri
            #   in the cache key.
            # * Uses a single archive file with range requests and refuses requests to download
            #   the entire file.
            #   To combat this we pass-through the Range headers and include the range to the
            #   cache key and allow caching of 206 responses.
            proxy_ignore_headers Expires Cache-Control;
            proxy_set_header Range $http_range;
            proxy_set_header If-Range $http_if_range;
            proxy_cache_key "$server_name$uri $http_range";
            proxy_cache_valid 200 120d;
            proxy_read_timeout 150;
            # Use Origin cache
            proxy_cache arenanetworks;
            include lancache/proxy-cache;
    }

}

bntjah commented 8 years ago

integrated into development / master branch