This is a simple Nginx cache server that caches the responses from the backend server. It just uses the Nginx docker image and some Environment variables to configure it. You can configure it via the .env file.
- Docker
- Clone the repository
- Run
cp .env.example .env - Edit the .env file
- Run
docker compose up -d
You can configure the cache server via the .env file.
These are helpful if you are using Traefik as a reverse proxy.
But if not you can just ignore these.
If you want to use traefik use docker compose -f traefik.docker-compose.yml up -d to start the container.
TRAEFIK_CERT_RESOLVERThe name of the cert resolverTRAEFIK_ENTRYPOINTThe entrypoint of TraefikTRAEFIK_NETWORKThe network of TraefikTRAEFIK_ROUTERThe router of Traefik
UPSTREAM_DOMAINThe domain of the upstream serverUPSTREAM_PORTThe port of the upstream serverUPSTREAM_HOST_HEADERThe host header of the upstream server, usually the same as the domain, but in some cases, it can be differentUPSTREAM_PROTOCOLThe protocol of the upstream serverMAX_CACHE_SIZEThe maximum size of the cacheCACHE_DURATIONThe duration of the cacheIN_RAM_SIZEThe size of the in-ram cache