Created
November 10, 2017 20:23
-
-
Save ryancurrah/72239bbf3d197ccaf1ce5ec79503da8b to your computer and use it in GitHub Desktop.
Rundeck Pro HAPROXY Example
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
############# | |
## BACKEND ## | |
############# | |
backend www-rundeck | |
mode http | |
balance roundrobin | |
option httpchk get /api/14/system/info?authtoken=loadbalancer | |
http-check expect status 200 | |
cookie JSESSIONID prefix nocache | |
server rundeck-a rnd01.vagrant.test:4440 check cookie rnda | |
server rundeck-b rnd02.vagrant.test:4440 check cookie rndb | |
############## | |
## FRONTEND ## | |
############## | |
frontend rundeck-https | |
mode http | |
bind rundeck.vagrant.test:443 ssl crt /etc/pki/haproxy/self/haproxy.pem | |
option httplog | |
option forwardfor | |
option forwardfor header X-Real-IP | |
reqadd X-Forwarded-Proto:\ https | |
use_backend www-rundeck |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment