forked from nyanloutre/nixos-config
haproxy: supression espaces inutiles
This commit is contained in:
parent
612a41ca9b
commit
78284f5e60
@ -36,13 +36,11 @@ let
|
|||||||
http-response set-header Strict-Transport-Security max-age=15768000
|
http-response set-header Strict-Transport-Security max-age=15768000
|
||||||
use_backend letsencrypt-backend if letsencrypt-acl
|
use_backend letsencrypt-backend if letsencrypt-acl
|
||||||
use_backend haproxy_stats if haproxy-acl
|
use_backend haproxy_stats if haproxy-acl
|
||||||
|
|
||||||
${concatStrings (
|
${concatStrings (
|
||||||
mapAttrsToList (name: value:
|
mapAttrsToList (name: value:
|
||||||
" acl ${name}-acl hdr(host) -i ${name}\n"
|
" acl ${name}-acl hdr(host) -i ${name}\n"
|
||||||
+ " use_backend ${name}-backend if ${name}-acl\n"
|
+ " use_backend ${name}-backend if ${name}-acl\n"
|
||||||
) cfg.services)}
|
) cfg.services)}
|
||||||
|
|
||||||
backend letsencrypt-backend
|
backend letsencrypt-backend
|
||||||
mode http
|
mode http
|
||||||
server letsencrypt 127.0.0.1:${toString nginx_port}
|
server letsencrypt 127.0.0.1:${toString nginx_port}
|
||||||
@ -52,7 +50,6 @@ let
|
|||||||
stats hide-version
|
stats hide-version
|
||||||
acl AuthOK_LOUTRE http_auth(LOUTRE)
|
acl AuthOK_LOUTRE http_auth(LOUTRE)
|
||||||
http-request auth realm LOUTRE if !AuthOK_LOUTRE
|
http-request auth realm LOUTRE if !AuthOK_LOUTRE
|
||||||
|
|
||||||
${concatStrings (
|
${concatStrings (
|
||||||
mapAttrsToList (name: value:
|
mapAttrsToList (name: value:
|
||||||
''
|
''
|
||||||
@ -78,7 +75,6 @@ let
|
|||||||
) else "")}
|
) else "")}
|
||||||
''
|
''
|
||||||
) cfg.services)}
|
) cfg.services)}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user