Skip to content

Instantly share code, notes, and snippets.

@ryancurrah
Created November 10, 2017 20:23
Show Gist options
  • Save ryancurrah/72239bbf3d197ccaf1ce5ec79503da8b to your computer and use it in GitHub Desktop.
Save ryancurrah/72239bbf3d197ccaf1ce5ec79503da8b to your computer and use it in GitHub Desktop.
Rundeck Pro HAPROXY Example
#############
## 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