Giter Site home page Giter Site logo

toontoet / docker-caching-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from djmaze/docker-caching-proxy

0.0 0.0 0.0 21 KB

Caching proxy docker image

Home Page: https://hub.docker.com/r/decentralize/caching-proxy

Shell 80.02% Dockerfile 19.98%

docker-caching-proxy's Introduction

Caching proxy docker image

Docker Pulls Build Status

Front your webserver containers with a transparent cache.

What does it do?

This image runs an nginx server as a caching reverse proxy for a given URL. It can be used in conjunction with Traefik in order to transparently cache chosen paths on a backend service.

Usage

The container needs two environment variables:

  • UPSTREAM: URL of the upstream service which should be cached
  • ALLOWED_ORIGIN: origin URL which is allowed to load the files from this server (header Access-Control-Allowed-Origins) (default *)
  • MAX_SIZE: Size of the cache to use (on-disk)
  • MAX_INACTIVE: Maximum inactive time for cached items (default: 60m)
  • GZIP: Set to off in order to disable gzip compression (enabled by default)
  • PROXY_READ_TIMEOUT: Set the timeout for reading a response from the proxied server (default: 120s)
  • PROXY_CACHE_VALID: Set caching time for 200, 301, and 302 responses (disabled by default)

The server will be listening on port 80.

See the supplied docker-compose.yml for an example.

docker-caching-proxy's People

Contributors

djmaze avatar martinm82 avatar ticoombs avatar dcnick3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.