Update pillar.example
Showing some options for naming and multiple binds and leaving out the balance and using the configuration default
This commit is contained in:
parent
32e148d232
commit
9ca7d936e8
1 changed files with 23 additions and 7 deletions
|
@ -53,8 +53,7 @@ haproxy:
|
||||||
- "X-Forwarded-Proto:\\ http"
|
- "X-Forwarded-Proto:\\ http"
|
||||||
default_backend: www-backend
|
default_backend: www-backend
|
||||||
|
|
||||||
frontend2:
|
www-https:
|
||||||
name: www-https
|
|
||||||
bind: "*:443 ssl crt /etc/ssl/private/certificate-chain-and-key-combined.pem"
|
bind: "*:443 ssl crt /etc/ssl/private/certificate-chain-and-key-combined.pem"
|
||||||
reqadd:
|
reqadd:
|
||||||
- "X-Forwarded-Proto:\\ https"
|
- "X-Forwarded-Proto:\\ https"
|
||||||
|
@ -63,7 +62,12 @@ haproxy:
|
||||||
- url_static path_beg -i /static /images /javascript /stylesheets
|
- url_static path_beg -i /static /images /javascript /stylesheets
|
||||||
- url_static path_end -i .jpg .gif .png .css .js
|
- url_static path_end -i .jpg .gif .png .css .js
|
||||||
use_backends:
|
use_backends:
|
||||||
- static if url_static
|
- static-backend if url_static
|
||||||
|
some-services:
|
||||||
|
bind:
|
||||||
|
- "*:8080"
|
||||||
|
- "*:8088"
|
||||||
|
default_backend: api-backend
|
||||||
|
|
||||||
backends:
|
backends:
|
||||||
backend1:
|
backend1:
|
||||||
|
@ -76,8 +80,7 @@ haproxy:
|
||||||
host: 192.168.1.213
|
host: 192.168.1.213
|
||||||
port: 80
|
port: 80
|
||||||
check: check
|
check: check
|
||||||
backend2:
|
static-backend:
|
||||||
name: static
|
|
||||||
balance: roundrobin
|
balance: roundrobin
|
||||||
redirect: scheme https if !{ ssl_fc }
|
redirect: scheme https if !{ ssl_fc }
|
||||||
options:
|
options:
|
||||||
|
@ -92,8 +95,21 @@ haproxy:
|
||||||
realm: LoadBalancer
|
realm: LoadBalancer
|
||||||
auth: "user:password"
|
auth: "user:password"
|
||||||
servers:
|
servers:
|
||||||
server1:
|
some-server:
|
||||||
name: some-server
|
|
||||||
host: 123.156.189.111
|
host: 123.156.189.111
|
||||||
port: 8080
|
port: 8080
|
||||||
check: check
|
check: check
|
||||||
|
api-backend:
|
||||||
|
options:
|
||||||
|
- http-server-close
|
||||||
|
- forwardfor
|
||||||
|
servers:
|
||||||
|
apiserver1:
|
||||||
|
host: apiserver1.example.com
|
||||||
|
port: 80
|
||||||
|
check: check
|
||||||
|
server2:
|
||||||
|
name: apiserver2
|
||||||
|
host: apiserver2.example.com
|
||||||
|
port: 80
|
||||||
|
check: check
|
||||||
|
|
Loading…
Reference in a new issue