-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated examples, removed redundant newlines, enable ssl-capture-buff…
…er only if needed
- Loading branch information
1 parent
485ce62
commit 12cef8c
Showing
13 changed files
with
95 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ haproxy: | |
acme: | ||
enable: true | ||
email: '[email protected]' | ||
ca: 'letsencrypt-test' | ||
|
||
frontends: | ||
fe_web: | ||
|
@@ -28,7 +27,7 @@ haproxy: | |
- 'srv-2 192.168.10.12:80' | ||
|
||
be_fallback: | ||
lines: 'http-request redirect code 301 location https://github.com/ansibleguy' | ||
lines: 'http-request redirect code 302 location https://github.com/ansibleguy' | ||
``` | ||
|
@@ -37,6 +36,23 @@ haproxy: | |
## Result | ||
```bash | ||
|
||
root@test-ag-haproxy-acme:/# ls -l /etc/dehydrated/ | ||
> -rw-r----- 1 root haproxy-acme 478 May 3 15:44 config | ||
> -rw-r----- 1 root haproxy-acme 898 May 4 13:29 domains.txt | ||
|
||
root@test-ag-haproxy-acme:/# cat /etc/dehydrated/domains.txt | ||
> # Ansible managed: Do NOT edit this file manually! | ||
> # ansibleguy.infra_haproxy | ||
> | ||
> # FRONTEND: fe_web | ||
> ## BACKEND: be_test | ||
> app.test.ansibleguy.net > fe_web-be_test | ||
|
||
root@test-ag-haproxy-acme:/# ls -l /etc/ssl/haproxy_acme/certs | ||
> -rw------- 1 haproxy-acme haproxy-acme 3673 May 3 18:31 fe_web-be_test.pem | ||
> -rw-r----- 1 haproxy-acme haproxy 2872 May 3 15:05 placeholder.pem | ||
|
||
root@test-ag-haproxy-acme:/# cat /etc/haproxy/haproxy.cfg | ||
> # Ansible managed: Do NOT edit this file manually! | ||
> # ansibleguy.infra_haproxy | ||
|
@@ -57,7 +73,6 @@ root@test-ag-haproxy-acme:/# cat /etc/haproxy/haproxy.cfg | |
> ssl-default-bind-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384 | ||
> ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256 | ||
> ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets | ||
> tune.ssl.capture-buffer-size 96 | ||
> | ||
> defaults | ||
> log global | ||
|
@@ -120,15 +135,15 @@ root@test-ag-haproxy-acme:/# cat /etc/haproxy/conf.d/backend.cfg | |
> mode http | ||
> balance leastconn | ||
> | ||
> | ||
> server srv-1 192.168.10.11:80 check | ||
> server srv-2 192.168.10.12:80 check | ||
> | ||
> backend be_fallback | ||
> mode http | ||
> balance leastconn | ||
> | ||
> # SECTION: default | ||
> http-request redirect code 301 location https://github.com/ansibleguy | ||
> http-request redirect code 302 location https://github.com/ansibleguy | ||
> | ||
> backend be_haproxy_acme | ||
> server haproxy_acme 127.0.0.1:8405 check | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.