Sign inSign up

compendium/proxy

By compendium

Updated almost 5 years ago

Compendium Pro Modular Proxy

Image
0

509

compendium/proxy repository overview

Install

The default container will forward everything to http://httpbin.org/ where you can inspect the headers and cookies.

docker pull compendium/proxy
docker run -it --rm -p 7777:7777 --name proxy compendium/proxy

Custom Config

Create Config file

vi config.yaml

File Contents

---
    middleware:
        - AuditMiddleware:
        - RequestIDMiddleware:
        - SessionMiddleware:
            Cookie: theCookie
            Storage: memory
            Secret: theSecret
        - AuthMiddleware:
            required: true
            type: test-token
            token: "1234abcd"
            header: "Auth-Token"

    routes:
        "/*proxyPath":
            middleware:
                - Proxy:
                    URL: "http://mybackend.service.somedomain.com"

Run App

docker run -it --rm -p 7777:7777 -v config.yaml:/app/config.yaml --name proxy compendium/proxy

More info here:

https://wiki.compendium.red/index.php/Compendium:Auth

Tag summary

Content type

Image

Digest

Size

119.5 MB

Last updated

almost 5 years ago

docker pull compendium/proxy