Receive, Log, and Proxy HTTP requests.
2.0K
Receive, Log, and Proxy HTTP requests. Base On kyledayton/requesthub
The following are the environment variables for a requesthub:
You should consider the use of --env-file=, docker secrets to keep your secrets out of your shell history
Config_YML Demo:
hubs:
test-hub:
forward_url: 'https://www.example.com/webhook'
another-hub:
forward_url: 'https://www.example.com/webhook2'
To run a requesthub, launch requesthub image as a container with the correct parameters. Everything is controlled by environment variables passed to the container.
For example:
docker run -d --name request-hub --restart always \
-p 54321:54321 funnyzak/request-hub
Or, if you prefer compose:
version: '3'
services:
requesthub:
image: funnyzak/request-hub
container_name: requesthub
restart: always
logging:
driver: "json-file"
options:
max-size: "1g"
environment:
- TZ=Asia/Shanghai
- LANG=C.UTF-8
- CONFIG_YML=/config.yml
- NO_WEB=false
- PORT=54321
- MAX_REQUESTS=1024
- USER_NAME=hello
- PASSWORD=world
volumes:
- ./config.yml:/config.yml
ports:
- 80:54321
Content type
Image
Digest
sha256:1cdbcc683…
Size
8.5 MB
Last updated
almost 2 years ago
docker pull funnyzak/request-hub