Posted to openbsd by Bradipo at Mon Dec 12 22:07:21 GMT 2022view raw

  1. match header set "X-Forwarded-For" value "$REMOTE_ADDR"
  2. match header set "X-Forwarded-By" value "$SERVER_ADDR:$SERVER_PORT"
  3. match header set "Keep-Alive" value "$TIMEOUT"
  4. pass
  5. tls keypair "relayd"
  6. }
  7.  
  8. relay "betls" {
  9. listen on $ext_addr port https tls
  10. protocol "backend"
  11. forward to <backend> port https mode loadbalance check script "/usr/local/bin/checkbackend.sh"
  12. }
  13.