core: rework templating

Use frep [0] which uses the Go templating capabilities.

[0]: https://github.com/subchen/frep
This commit is contained in:
Saúl Ibarra Corretgé
2018-08-09 21:29:58 +02:00
parent 36d98c9e17
commit 1010c71b33
8 changed files with 26 additions and 37 deletions

View File

@@ -31,8 +31,8 @@ server {
# BOSH
location /http-bind {
proxy_pass ${XMPP_BOSH_URL_BASE}/http-bind;
proxy_pass {{ .Env.XMPP_BOSH_URL_BASE }}/http-bind;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host ${XMPP_DOMAIN};
proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
}
}