Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Thanks @GotenXiao

Co-authored-by: GotenXiao <[email protected]>
  • Loading branch information
VibroAxe and GotenXiao authored Oct 8, 2021
1 parent d77cfdc commit 425a75c
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 24 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
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 \
Expand Down
2 changes: 0 additions & 2 deletions overlay/etc/nginx/sites-available/10_cache.conf
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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
include /etc/nginx/sites-available/cache.conf.d/root/*.conf;

}

1 change: 0 additions & 1 deletion overlay/etc/nginx/sites-available/cache.conf.d/20_lol.conf
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;
Expand Down
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;
}
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;
}
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;
}
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;
2 changes: 1 addition & 1 deletion overlay/etc/nginx/stream-available/10_sni.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server {
listen 443;
resolver UPSTREAM_DNS ipv6=off;
resolver UPSTREAM_DNS ipv6=off;
proxy_pass $ssl_preread_server_name:443;
ssl_preread on;

Expand Down

0 comments on commit 425a75c

Please sign in to comment.