the-rp

command module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

the-rp

HTTP an TCP Reverse proxy supports asynchronous upstream resolution and some balancing strategy

Usage:
  the-rp [OPTIONS]

Application Options:
  -v, --version                                     Show version
  -l, --listen=                                     address to bind (default: 0.0.0.0:3000)
      --access-log-dir=                             directory to store logfiles
      --access-log-rotate=                          Number of rotation before remove logs (default: 30)
      --access-log-rotate-time=                     Interval minutes between file rotation (default: 1440)
      --mode=[http|tcp]                             proxy mode. tcp and http are supported (default: http)
      --upstream=                                   upstream server: upstream-server:port
      --override-host=                              Hostname override host header (HTTP)
                                                    By default pass through the requested Host
      --proxy-protocol                              use proxy-proto for listen (BOTH)
      --proxy-connect-timeout=                      timeout of connection to upstream (BOTH) (default: 10s)
      --proxy-read-timeout=                         timeout of reading response from upstream (HTTP) (default: 60s)
      --read-timeout=                               timeout of reading request (HTTP) (default: 30)
      --write-timeout=                              timeout of writing response (HTTP) (default: 90)
      --shutdown-timeout=                           timeout to wait for all connections to be closed. (BOTH) (default: 8h)
      --keepalive-conns=                            maximum keepalive connections for upstream.
                                                    keepalive is disabled when keepalive-conns is 0 (HTTP) (default: 10)
      --max-conns=                                  maximum connections for upstream (HTTP) (default: 0)
      --max-connect-retry=                          number of max connection retry (BOTH) (default: 3)
      --max-fails=                                  number of unsuccessful attempts (BOTH) (default: 1)
      --refresh-interval=                           interval seconds to refresh upstream resolver (BOTH) (default: 3s)
      --balancing=[leastconn|iphash|fixed|pathhash] balancing mode connection to upstream
                                                    - leastconn: least connection
                                                    - iphash: remote ip based
                                                    - pathhash: requested path based(http only)
                                                    - fixed: upstream host based (BOTH)
                                                    (default: leastconn)

Help Options:
  -h, --help                                        Show this help message

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址