This commit is contained in:
STAM 2018-07-13 18:02:17 +03:00
parent f5481a9441
commit 6e733e47f0
4 changed files with 82 additions and 0 deletions

43
balancer/Dockerfile Normal file
View File

@ -0,0 +1,43 @@
FROM ubuntu:bionic
MAINTAINER Konstantin Safonov <kasthack@epicm.org>
MAINTAINER Anatoliy Zimovskiy <stam@epicm.org>
ENV DEBIAN_FRONTEND noninteractive
# fix errors
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update && apt-get install -y apt-utils gnupg
# installing packages
RUN echo "deb http://ppa.launchpad.net/ondrej/nginx-mainline/ubuntu bionic main" >> /etc/apt/sources.list && \
gpg --keyserver keyserver.ubuntu.com --recv 4F4EA0AAE5267A6C && \
gpg --export --armor 4F4EA0AAE5267A6C >> temp.key && \
apt-key add temp.key && \
rm temp.key && \
gpg --keyserver keyserver.ubuntu.com --recv A1715D88E1DF1F24 && \
gpg --export --armor A1715D88E1DF1F24 >> temp.key && \
apt-key add temp.key && \
rm temp.key && \
apt-get update && \
echo "=====================================================" && \
echo "=====================================================" && \
echo "=====================================================" && \
apt-get dist-upgrade -y && \
echo "=====================================================" && \
echo "=====================================================" && \
echo "=====================================================" && \
apt-get install -y --no-install-recommends --allow-unauthenticated apt-utils htop mc tmux cmatrix wget && \
echo "=====================================================" && \
echo "=====================================================" && \
echo "=====================================================" && \
apt-get install -y --no-install-recommends --allow-unauthenticated ca-certificates openssl nginx libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext libnginx-mod-http-geoip libnginx-mod-http-headers-more-filter libnginx-mod-http-lua libnginx-mod-http-uploadprogress libnginx-mod-mail libnginx-mod-stream libnginx-mod-http-xslt-filter && \
rm -rf /var/lib/apt/lists/*
RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
VOLUME ["/var/cache/nginx"]
EXPOSE 80 443
CMD ["nginx", "-g", "daemon off;"]

22
balancer/LICENSE Normal file
View File

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2018 Helder Correia
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

4
balancer/Makefile Normal file
View File

@ -0,0 +1,4 @@
all: nginx
nginx:
docker build --no-cache -t epicmorg/balancer .

13
balancer/README.md Normal file
View File

@ -0,0 +1,13 @@
# nginx web/proxy server (extended version)
Nginx ("engine X") is a high-performance web and reverse proxy server created by Igor Sysoev. It can be used both as a standalone web server and as a proxy to reduce the load on back-end HTTP or mail servers.
This package provides a version of nginx with the standard modules, plus extra features and modules such as the Perl module, which allows the addition of Perl in configuration files.
**STANDARD HTTP MODULES:** Core, Access, Auth Basic, Auto Index, Browser, Empty GIF, FastCGI, Geo, Limit Connections, Limit Requests, Map, Memcached, Proxy, Referer, Rewrite, SCGI, Split Clients, UWSGI.
**OPTIONAL HTTP MODULES:** Addition, Auth Request, Charset, WebDAV, FLV, GeoIP, Gunzip, Gzip, Gzip Precompression, Headers, Image Filter, Index, Log, MP4, Embedded Perl, Random Index, Real IP, Secure Link, Spdy, SSI, SSL, Stream, Stub Status, Substitution, Thread Pool, Upstream, User ID, XSLT.
**MAIL MODULES:** Mail Core, Auth HTTP, Proxy, SSL, IMAP, POP3, SMTP.
**THIRD PARTY MODULES:** Auth PAM, Cache Purge, DAV Ext, Echo, Fancy Index, Headers More, Embedded Lua, HTTP Push, HTTP Substitutions, Upload Progress, Upstream Fair Queue.