An open API service indexing awesome lists of open source software.

https://github.com/jcmoraisjr/simple-proxy

TCP proxy using dynamic configuration
https://github.com/jcmoraisjr/simple-proxy

Last synced: 3 months ago
JSON representation

TCP proxy using dynamic configuration

Awesome Lists containing this project

README

        

# Simple-Proxy

A simple way to create a TCP proxy with dynamic configuration.

Simple Proxy uses HAProxy.

[![Docker Repository on Quay](https://quay.io/repository/jcmoraisjr/simple-proxy/status "Docker Repository on Quay")](https://quay.io/repository/jcmoraisjr/simple-proxy)

# Usage

Configure and run the proxy:

docker run -d -p 1936:1936 -p : quay.io/jcmoraisjr/simple-proxy:latest --proxy-port= --server-list= --log-endpoint=

See options below.

# Options

* `--proxy-port` is the listening port of the proxy.
* `--server-list` is a comma-separated list of `IP:PORT`. If more than one `IP:PORT` is used, proxy will load balance the requests.
* `--log-endpoint` is an optional `ip:port` udp syslog endpoint. If not specified, Simple Proxy will start a syslogd daemon and write HAProxy logs to stdout.

Simple Proxy uses `1936` as the listening port of the status page.

# Deploy

The following unit deploys Simple Proxy as a systemd unit.

Change `` and `` to the listening port and list of servers.

Change `` to the `IP:PORT` of the external syslog daemon or remove the option `--log-endpoint`.

[Unit]
Description=Simple Proxy
After=docker.service
Requires=docker.service
[Service]
ExecStartPre=-/usr/bin/docker stop simple-proxy
ExecStartPre=-/usr/bin/docker rm simple-proxy
ExecStart=/usr/bin/docker run \
-p 1936:1936 \
-p : \
quay.io/jcmoraisjr/simple-proxy:latest \
--log-endpoint= \
--proxy-port= \
--server-list=
RestartSec=10s
Restart=always
[Install]
WantedBy=multi-user.target