Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Outline

NIRVai HAProxy

documentation for the HAProxy @ NIRVai

RACEXP

setup

script.haproxy.sh

INTERFACE

# the prefix to all your container names
## we add this to each cmd automatically where apropriate
SERVICE_PREFIX=nirvai

# where all your .cfg files are kept
## e.g. /usr/local/etc/haproxy/configs
HAPROXY_CONFIG_DIR=./configs

basic workflow

# prefix all cmds with script.haproxy.sh

## validate configuration for running container: nirvai_web_proxy
conf validate core_proxy

## validate then reload configuration for running container: nirvai_web_proxy
conf reload core_proxy

## get server status for running container: nirvai_web_proxy
conf info core_proxy

helpful stuff

# consul backend server: hardcoded
# consul: test with `consul members` to get the ip
server consul-hardcoded "192.168.176.2:${VAULT_PORT_CUNT}" check ssl verify none maxconn ${PROXY_MAXCONN_PRIV} weight 100 backup

# consul backend server: with consul-template
# consul-template
{{ range service "core-vault" }}
  server {{.Node}} {{.Address}}:{{.Port}} check ssl verify none maxconn ${PROXY_MAXCONN_PRIV} weight 255 {{ end }}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.