Parametrize hosts

Allows to use mailu without docker-compose when hostnames are not set up
by docker itself but provided via a separate resolver.

Use case: use mailu using nomad scheduler and consul resolver instead of
docker-compose. Other servers are provided by the DNS resolver that
resolves names like admin.service.consul or webmail.service.consul.
These names needs to be configurable.
This commit is contained in:
Mildred Ki'Lya
2018-01-24 00:55:43 +01:00
parent d8ebfbe020
commit f538e33dcf
5 changed files with 46 additions and 9 deletions

View File

@@ -37,10 +37,10 @@ http {
# Main HTTP server
server {
# Variables for proxifying
set $admin admin;
set $antispam antispam:11334;
set $webmail webmail;
set $webdav webdav:5232;
set $admin {{ HOST_ADMIN }};
set $antispam {{ HOST_ANTISPAM }};
set $webmail {{ HOST_WEBMAIL }};
set $webdav {{ HOST_WEBDAV }};
# Always listen over HTTP
listen 80;