From da7ba4c262c2389fc11a2d9de73c97df99eaba76 Mon Sep 17 00:00:00 2001
From: pierreozoux <pierre@ozoux.net>
Date: Thu, 30 Oct 2014 14:11:21 +0000
Subject: [PATCH] Move options from backend to default

---
 confd/templates/haproxy.cfg.tmpl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/confd/templates/haproxy.cfg.tmpl b/confd/templates/haproxy.cfg.tmpl
index 344745d..d2d2979 100644
--- a/confd/templates/haproxy.cfg.tmpl
+++ b/confd/templates/haproxy.cfg.tmpl
@@ -11,6 +11,8 @@ global
 
 defaults
   mode http
+  option forwardfor
+  option httpclose
   option httplog
   option dontlognull
   retries 3
@@ -58,8 +60,6 @@ frontend http-in
 # {{base $hostname}}:
 backend {{base $hostname}}
   cookie SERVERID insert nocache indirect
-  option httpclose
-  option forwardfor
   server Server {{$data.ip}}:{{$data.port}} cookie Server
   {{end}}
 {{end}}
-- 
GitLab