mirror of
https://github.com/lancachenet/monolithic
synced 2024-11-24 21:13:02 +00:00
Apply suggestions from code review
Thanks @gotenxiao Co-authored-by: GotenXiao <gotenxiao@gmail.com>
This commit is contained in:
parent
d77cfdc601
commit
425a75c7da
9 changed files with 20 additions and 24 deletions
|
@ -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 <team@lancache.net>"
|
||||
LABEL description="Single caching container for caching game content at LAN parties."
|
||||
LABEL maintainer="LanCache.Net Team <team@lancache.net>"
|
||||
|
||||
ENV GENERICCACHE_VERSION=2 \
|
||||
CACHE_MODE=monolithic \
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -5,4 +5,3 @@
|
|||
include /etc/nginx/sites-available/cache.conf.d/root/*.conf;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# Fix for League of Legends Updater
|
||||
location ~ ^.+(releaselisting_.*|.version$) {
|
||||
proxy_pass http://$host;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue