Merge pull request #23 from rtuin/patch-1
Correct the redirect examples in pillar.example
This commit is contained in:
commit
c89edcb27d
1 changed files with 6 additions and 3 deletions
|
@ -106,7 +106,8 @@ haproxy:
|
||||||
frontend1:
|
frontend1:
|
||||||
name: www-http
|
name: www-http
|
||||||
bind: "*:80"
|
bind: "*:80"
|
||||||
redirect: scheme https if !{ ssl_fc }
|
redirects:
|
||||||
|
- scheme https if !{ ssl_fc }
|
||||||
reqadd:
|
reqadd:
|
||||||
- "X-Forwarded-Proto:\\ http"
|
- "X-Forwarded-Proto:\\ http"
|
||||||
default_backend: www-backend
|
default_backend: www-backend
|
||||||
|
@ -131,7 +132,8 @@ haproxy:
|
||||||
backend1:
|
backend1:
|
||||||
name: www-backend
|
name: www-backend
|
||||||
balance: roundrobin
|
balance: roundrobin
|
||||||
redirect: scheme https if !{ ssl_fc }
|
redirects:
|
||||||
|
- scheme https if !{ ssl_fc }
|
||||||
servers:
|
servers:
|
||||||
server1:
|
server1:
|
||||||
name: server1-its-name
|
name: server1-its-name
|
||||||
|
@ -140,7 +142,8 @@ haproxy:
|
||||||
check: check
|
check: check
|
||||||
static-backend:
|
static-backend:
|
||||||
balance: roundrobin
|
balance: roundrobin
|
||||||
redirect: scheme https if !{ ssl_fc }
|
redirects:
|
||||||
|
- scheme https if !{ ssl_fc }
|
||||||
options:
|
options:
|
||||||
- http-server-close
|
- http-server-close
|
||||||
- httpclose
|
- httpclose
|
||||||
|
|
Loading…
Reference in a new issue