Skip to content

Instantly share code, notes, and snippets.

@TimWolla
Last active June 22, 2018 17:06
Show Gist options
  • Save TimWolla/faf20769c5ba46b6f1db79238f7cc8a7 to your computer and use it in GitHub Desktop.
Save TimWolla/faf20769c5ba46b6f1db79238f7cc8a7 to your computer and use it in GitHub Desktop.
frontend http
mode http
bind :::80 v4v6
http-request lua.auth-request auth_request /is-allowed
http-request deny if ! { var(txn.auth_response_successful) -m bool }
backend auth_request
mode http
server auth_request 127.0.0.1:8080
listen auth_request2
mode http
bind 127.0.0.1:8080
server one 10.0.0.1:8080 ssl check
server two 10.0.0.2:8080 ssl check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment