https://github.com/h2cone/gatekeeper
A simple HTTP proxy server.
https://github.com/h2cone/gatekeeper
command-line http-proxy load-balancer pingora reverse-proxy
Last synced: 10 months ago
JSON representation
A simple HTTP proxy server.
- Host: GitHub
- URL: https://github.com/h2cone/gatekeeper
- Owner: h2cone
- License: apache-2.0
- Created: 2024-05-15T13:53:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-30T17:07:10.000Z (over 1 year ago)
- Last Synced: 2024-11-30T17:40:25.626Z (over 1 year ago)
- Topics: command-line, http-proxy, load-balancer, pingora, reverse-proxy
- Language: Rust
- Homepage:
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# gatekeeper
A simple HTTP proxy server.
## Installation
Download the latest release from the [releases page](https://github.com/h2cone/gatekeeper/releases).
## Usage
You can run the server via the following command:
```shell
./gatekeeper --bind 0.0.0.0:8008 --hc-freq 30 --host one.one.one.one --tls --upstream 1.0.0.1:443 --upstream 1.1.1.1:443
```
## Command Line Arguments
```shell
USAGE:
gatekeeper [OPTIONS] --bind --upstream
OPTIONS:
--bind Bind address
-c, --conf The path to the configuration file.
--cert Certificate file path [default: ]
-d, --daemon Whether this server should run in the background
-h, --help Print help information
--hc-freq Health check frequency in seconds [default: 0]
--host Request host [default: ]
--key Key file path [default: ]
--sni SNI for upstream [default: ]
-t, --test This flag is useful for upgrading service where the user wants to
make sure the new service can start before shutting down the old
server process.
--tls TLS for upstream
-u, --upgrade This is the base set of command line arguments for a pingora-based
service
--upstream Upstream address
-V, --version Print version information
```