Added kubernetes to Mailu

This commit is contained in:
hacor
2018-10-17 07:22:55 +02:00
parent 75a1bf967c
commit 4ea12deae7
32 changed files with 1611 additions and 539 deletions

View File

@@ -1,4 +1,4 @@
FROM alpine:edge
FROM alpine:3.7
RUN apk add --no-cache nginx nginx-mod-mail python py-jinja2 certbot openssl
@@ -7,4 +7,4 @@ COPY *.py /
EXPOSE 80/tcp 443/tcp 110/tcp 143/tcp 465/tcp 587/tcp 993/tcp 995/tcp 25/tcp 10025/tcp 10143/tcp
CMD /start.py
CMD /start.py

View File

@@ -34,6 +34,8 @@ http {
'' $scheme;
}
# Disable the main http server when on kubernetes (port 80 and 443)
{% if KUBERNETES_INGRESS != 'true' %}
# Main HTTP server
server {
# Variables for proxifying
@@ -147,6 +149,7 @@ http {
proxy_set_header Content-Length "";
}
}
{% endif %}
# Forwarding authentication server
server {