| Name | Required | Type | Default | Description |
|---|---|---|---|---|
| CONFIG_BASE_PATH | false | String | /opt/proxy-server/config | Directory that contains all configuration files |
| HTTPS_ENABLE | false | Boolean | false | Enable domain certificates for the registered domains |
| HTTP_PORT | false | String | 80 | Http listener port |
| HTTPS_PORT | false | String | 443 | Https listener port |
| LOGSTASH_URI | false | String | Uri of logstash server | |
| LOGSTASH_TIMEOUT | false | Int | 5 sec | Logstash send log timeout |
| LOGSTASH_ENABLED | false | Boolean | false | Disable or enable logstash |
| LOGGER_PATH | false | String | /var/log/proxy-server | Path to store the logs |
By providing the
LOGSTASH_URIandLOGSTASH_ENABLEDthe server will send the logs to the logstash server
All the configuration file must be in the
CONFIG_BASE_PATHdirectory
origins:
- my-domain.com
# Example of frontend configuration
# my-domain.com.app.yaml
config:
serviceName: "/"
baseHost:
- "my-domain.com"
targetHost: "http://172.17.0.1:1080/"
pathRewrites:
- regex: "/"
target: "/"
# Example of backend configuration
# my-domain.com.backend.yaml
config:
serviceName: "api/my-backend/v1"
baseHost:
- "my-domain.com"
targetHost: "http://172.17.0.1:8080/"
pathRewrites:
- regex: "/"
target: "/"
Required only if
HTTPS_ENABLEis true
domain:
host: "my-domain.com"
cert: "/etc/letsencrypt/live/www.my-domain.com/fullchain.pem"
key: "/etc/letsencrypt/live/www.my-domain.com/privkey.pem"
docker run -d --rm --name proxy-server \
-e CONFIG_BASE_PATH=/opt/proxy-server/config \
-e HTTPS_ENABLE=false \
-e LOGSTASH_URI=logstash:5000 \
-e LOGSTASH_ENABLED=false \
-v /opt/proxy-server/config:/opt/proxy-server/config \
-v /etc/letsencrypt:/etc/letsencrypt \
eliasmeireles/proxy-server
Content type
Image
Digest
sha256:f8c60db80…
Size
13.4 MB
Last updated
about 2 years ago
docker pull eliasmeireles/proxy-server