forked from lancachenet/monolithic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thanks @GotenXiao Co-authored-by: GotenXiao <[email protected]>
- Loading branch information
Showing
9 changed files
with
20 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM lancachenet/ubuntu-nginx:latest | ||
LABEL version=3 | ||
LABEL description="Single caching container for caching game content at lan parties." | ||
LABEL maintainer=" LanCache.Net Team <[email protected]>" | ||
LABEL description="Single caching container for caching game content at LAN parties." | ||
LABEL maintainer="LanCache.Net Team <[email protected]>" | ||
|
||
ENV GENERICCACHE_VERSION=2 \ | ||
CACHE_MODE=monolithic \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
|
||
server { | ||
listen 80 reuseport; | ||
|
||
access_log /data/logs/access.log cachelog; | ||
error_log /data/logs/error.log; | ||
|
||
|
||
include /etc/nginx/sites-available/cache.conf.d/*.conf; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ | |
include /etc/nginx/sites-available/cache.conf.d/root/*.conf; | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
# Fix for League of Legends Updater | ||
location ~ ^.+(releaselisting_.*|.version$) { | ||
proxy_pass http://$host; | ||
|
6 changes: 3 additions & 3 deletions
6
overlay/etc/nginx/sites-available/cache.conf.d/21_arenanet_manifest.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Fix for GW2 manifest | ||
location ^~ /latest64 { | ||
proxy_cache_bypass 1; | ||
proxy_no_cache 1; | ||
proxy_pass http://$host$request_uri; | ||
proxy_cache_bypass 1; | ||
proxy_no_cache 1; | ||
proxy_pass http://$host$request_uri; | ||
} |
8 changes: 4 additions & 4 deletions
8
overlay/etc/nginx/sites-available/cache.conf.d/22_wsus_cabs.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Fix for WSUS authroot cab files | ||
# Fix for WSUS authroot cab files | ||
location ~* (authrootstl.cab|pinrulesstl.cab|disallowedcertstl.cab)$ { | ||
proxy_cache_bypass 1; | ||
proxy_no_cache 1; | ||
proxy_pass http://$host$request_uri; | ||
proxy_cache_bypass 1; | ||
proxy_no_cache 1; | ||
proxy_pass http://$host$request_uri; | ||
} |
8 changes: 4 additions & 4 deletions
8
overlay/etc/nginx/sites-available/cache.conf.d/23_steam_server_status.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
location = /server-status { | ||
proxy_no_cache 1; | ||
proxy_cache_bypass 1; | ||
} | ||
location = /server-status { | ||
proxy_no_cache 1; | ||
proxy_cache_bypass 1; | ||
} |
12 changes: 6 additions & 6 deletions
12
overlay/etc/nginx/sites-available/cache.conf.d/root/10_loop_detection.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Abort any circular requests | ||
if ($http_X_LanCache_Processed_By = $hostname) { | ||
return 508; | ||
} | ||
# Abort any circular requests | ||
if ($http_X_LanCache_Processed_By = $hostname) { | ||
return 508; | ||
} | ||
|
||
proxy_set_header X-LanCache-Processed-By $hostname; | ||
add_header X-LanCache-Processed-By $hostname,$http_X_LanCache_Processed_By; | ||
proxy_set_header X-LanCache-Processed-By $hostname; | ||
add_header X-LanCache-Processed-By $hostname,$http_X_LanCache_Processed_By; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters