mirror of
https://github.com/lancachenet/monolithic
synced 2024-11-21 19:43:05 +00:00
Fixed spacing & indents
This commit is contained in:
parent
a27bb4d77c
commit
6f1fbbe617
8 changed files with 49 additions and 50 deletions
11
Dockerfile
11
Dockerfile
|
@ -3,6 +3,9 @@ LABEL version=3
|
|||
LABEL description="Single caching container for caching game content at LAN parties."
|
||||
LABEL maintainer="LanCache.Net Team <team@lancache.net>"
|
||||
|
||||
RUN apt-get update ;\
|
||||
apt-get install -y jq git ;
|
||||
|
||||
ENV GENERICCACHE_VERSION=2 \
|
||||
CACHE_MODE=monolithic \
|
||||
WEBUSER=www-data \
|
||||
|
@ -17,9 +20,6 @@ ENV GENERICCACHE_VERSION=2 \
|
|||
CACHE_DOMAINS_BRANCH=master \
|
||||
NGINX_WORKER_PROCESSES=auto
|
||||
|
||||
RUN apt-get update ;\
|
||||
apt-get install -y jq git ;
|
||||
|
||||
COPY overlay/ /
|
||||
|
||||
RUN rm /etc/nginx/sites-enabled/* /etc/nginx/stream-enabled/* ;\
|
||||
|
@ -35,9 +35,8 @@ RUN rm /etc/nginx/sites-enabled/* /etc/nginx/stream-enabled/* ;\
|
|||
mkdir -p /etc/nginx/sites-enabled ;\
|
||||
ln -s /etc/nginx/sites-available/10_cache.conf /etc/nginx/sites-enabled/10_generic.conf; \
|
||||
ln -s /etc/nginx/sites-available/20_upstream.conf /etc/nginx/sites-enabled/20_upstream.conf; \
|
||||
ln -s /etc/nginx/stream-available/10_sni.conf /etc/nginx/stream-enabled/10_sni.conf
|
||||
|
||||
RUN mkdir -m 755 -p /data/cachedomains ;\
|
||||
ln -s /etc/nginx/stream-available/10_sni.conf /etc/nginx/stream-enabled/10_sni.conf; \
|
||||
mkdir -m 755 -p /data/cachedomains ;\
|
||||
mkdir -m 755 -p /tmp/nginx
|
||||
|
||||
RUN git clone --depth=1 --no-single-branch https://github.com/uklans/cache-domains/ /data/cachedomains
|
||||
|
|
|
@ -38,3 +38,4 @@ stream {
|
|||
include /etc/nginx/stream.d/*.conf;
|
||||
include /etc/nginx/stream-enabled/*;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Upstream Configuration
|
||||
proxy_next_upstream error timeout http_404;
|
||||
# proxy_pass http://$host$request_uri;
|
||||
|
||||
# Proxy into the redirect handler
|
||||
proxy_pass http://127.0.0.1:3128$request_uri;
|
||||
|
|
Loading…
Reference in a new issue