Created
March 13, 2017 18:17
-
-
Save jamesbeedy/1f3a6b51eca995fdc34249bcc67407ce to your computer and use it in GitHub Desktop.
haproxy-charm-config
This file contains hidden or 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
| haproxy: | |
| charm: haproxy | |
| constraints: cpu-cores=1 mem={{standard_ram}} | |
| num_units: {{standard_units}} | |
| expose: True | |
| options: | |
| enable_monitoring: true | |
| ssl_cert: include-base64://{{local_dir}}/staging.review.jujucharms.com.crt | |
| ssl_key: include-base64://{{local_dir}}/staging.review.jujucharms.com.key | |
| services: | | |
| - service_name: review-queue | |
| service_host: "0.0.0.0" | |
| service_port: 443 | |
| crts: [DEFAULT] | |
| service_options: | |
| - "mode http" | |
| - "balance leastconn" | |
| - "option httpchk HEAD / HTTP/1.0" | |
| - "http-request set-header X-Forwarded-Proto https" | |
| - "redirect scheme https code 301 if !{ ssl_fc }" | |
| server_options: maxconn 100 cookie S{i} check | |
| - service_name: review-queue-redir | |
| service_host: "0.0.0.0" | |
| service_port: 80 | |
| service_options: | |
| - "redirect scheme https code 301 if !{ ssl_fc }" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment