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_RESOLVER
The name of the cert resolverTRAEFIK_ENTRYPOINT
The entrypoint of TraefikTRAEFIK_NETWORK
The network of TraefikTRAEFIK_ROUTER
The router of Traefik
UPSTREAM_DOMAIN
The domain of the upstream serverUPSTREAM_PORT
The port of the upstream serverUPSTREAM_HOST_HEADER
The host header of the upstream server, usually the same as the domain, but in some cases, it can be differentUPSTREAM_PROTOCOL
The protocol of the upstream serverMAX_CACHE_SIZE
The maximum size of the cacheCACHE_DURATION
The duration of the cacheIN_RAM_SIZE
The size of the in-ram cache