{"id":26190150,"url":"https://github.com/zazuko/varnish-post","last_synced_at":"2025-12-24T12:11:28.853Z","repository":{"id":37931258,"uuid":"377442491","full_name":"zazuko/varnish-post","owner":"zazuko","description":"Varnish Docker image that also caches POST requests","archived":false,"fork":false,"pushed_at":"2023-01-08T05:30:34.000Z","size":292,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2023-08-05T18:54:37.033Z","etag":null,"topics":["docker-image","post","varnish"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zazuko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-16T09:31:00.000Z","updated_at":"2023-08-05T18:54:37.034Z","dependencies_parsed_at":"2023-02-08T05:01:10.656Z","dependency_job_id":null,"html_url":"https://github.com/zazuko/varnish-post","commit_stats":null,"previous_names":[],"tags_count":9,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazuko%2Fvarnish-post","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazuko%2Fvarnish-post/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazuko%2Fvarnish-post/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazuko%2Fvarnish-post/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zazuko","download_url":"https://codeload.github.com/zazuko/varnish-post/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243136209,"owners_count":20241989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","post","varnish"],"created_at":"2025-03-12T00:52:44.543Z","updated_at":"2025-12-24T12:11:28.834Z","avatar_url":"https://github.com/zazuko.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Varnish POST\n\n\u003e This Docker image let you cache GET and POST requests.\n\nFor POST requests, it will not cache requests with no body or with an empty body.\n\n## Docker image\n\nYou can pull the Docker image using:\n\n```sh\ndocker pull ghcr.io/zazuko/varnish-post\n```\n\nIt is listening on the 80 port.\n\n## Configuration\n\nYou can use following environment variables for configuration:\n\n- `BACKEND_HOST`: host of the backend to cache (default: `localhost`)\n- `BACKEND_PORT`: port of the backend to cache (default: `3000`)\n- `VARNISH_SIZE`: size of the cache in the RAM (default: `100M`)\n- `BACKEND_FIRST_BYTE_TIMEOUT`: first byte timeout (default: `60s`)\n- `CACHE_TTL`: time to cache the request (default: `3600s`)\n- `BODY_SIZE`: maximum size for the body ; if it exceeds this value, it will not be cached (default: `2048KB`)\n- `DISABLE_ERROR_CACHING`: disable the caching of errors (default: `true`)\n- `DISABLE_ERROR_CACHING_TTL`: time where requests should be directly sent to the backend after an error occured (default: `30s`)\n- `CONFIG_FILE`: the name of the configuration file to use (default: `default.vcl`)\n- `ENABLE_LOGS`: enable logs (default: `true`)\n- `ENABLE_PROMETHEUS_EXPORTER`: enable the Prometheus exporter if set to `true` (default: `false`).\n  If enabled, the exporter will be available on the 9131 port.\n- `PURGE_ACL`: custom ACL for the PURGE method (default: `localhost`) ; you can use `0.0.0.0/0` to allow all.\n- `CUSTOM_ARGS`: custom arguments to pass to varnishd (default: `''`)\n\n## Cache invalidation\n\nYou can invalidate the cache entry by sending the same request with the `PURGE` method.\n\nIf your backend is sending a `xkey` header, if you send a `PURGE` request with the same `xkey` header, it will invalidate all cache entries with the same tag.\n\n## License\n\nThis project is licensed under the MIT License.\nSee the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzazuko%2Fvarnish-post","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzazuko%2Fvarnish-post","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzazuko%2Fvarnish-post/lists"}