haproxy: supression espaces inutiles

This commit is contained in:
nyanloutre 2019-07-31 13:52:19 +02:00
parent 612a41ca9b
commit 78284f5e60
1 changed files with 0 additions and 4 deletions

View File

@ -36,13 +36,11 @@ let
http-response set-header Strict-Transport-Security max-age=15768000
use_backend letsencrypt-backend if letsencrypt-acl
use_backend haproxy_stats if haproxy-acl
${concatStrings (
mapAttrsToList (name: value:
" acl ${name}-acl hdr(host) -i ${name}\n"
+ " use_backend ${name}-backend if ${name}-acl\n"
) cfg.services)}
backend letsencrypt-backend
mode http
server letsencrypt 127.0.0.1:${toString nginx_port}
@ -52,7 +50,6 @@ let
stats hide-version
acl AuthOK_LOUTRE http_auth(LOUTRE)
http-request auth realm LOUTRE if !AuthOK_LOUTRE
${concatStrings (
mapAttrsToList (name: value:
''
@ -78,7 +75,6 @@ let
) else "")}
''
) cfg.services)}
'';
in
{