{"id":22908861,"url":"https://github.com/ipunkt/docker-varnish-stale-config","last_synced_at":"2026-01-08T17:35:09.304Z","repository":{"id":66084727,"uuid":"75067988","full_name":"ipunkt/docker-varnish-stale-config","owner":"ipunkt","description":"stale-on-revalidate and stale-on-error config to use in a varnish container via volumes_from","archived":false,"fork":false,"pushed_at":"2018-09-20T07:51:48.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-07T05:27:39.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/ipunkt.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-29T10:01:12.000Z","updated_at":"2018-09-20T07:51:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b5fc453-2436-4609-86be-7d32ae1970ec","html_url":"https://github.com/ipunkt/docker-varnish-stale-config","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fdocker-varnish-stale-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fdocker-varnish-stale-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fdocker-varnish-stale-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fdocker-varnish-stale-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipunkt","download_url":"https://codeload.github.com/ipunkt/docker-varnish-stale-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620260,"owners_count":20806722,"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":[],"created_at":"2024-12-14T03:32:45.855Z","updated_at":"2026-01-08T17:35:04.271Z","avatar_url":"https://github.com/ipunkt.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-varnish-stale-config\nstale-on-revalidate and stale-on-error config template for confd to use with [rancher-tools](https://github.com/rawmind0/rancher-tools)\n\n# Config\nThe configuration currently uses a round-robin director to add all backends.\n\nThe backends are generated from the services links. However in rancher 1.2.0-pre3 there is a bug in\nrancher/confd giving `STACK/SERVICE` as key and confd only passes on the `STACK` part. Thus the config is generated\nfor all services matching the links `STACK` and:\n- BACKEND\\_PREFIX: Name to match\n- BACKEND\\_DIVIDER: only up until this character is matched  \n- NOBOTS: if this is set to `true` then the bot useragent -\u003e pass through(pipe) mode instead of cache\n- VARY\\_AUTH: If this is set to `true` then caching will take place despite an authorization header being sent. Responses\n  will vary based on the authorization header.  \n  This is ment for staging environments with basic auth protection.\n- IGNORE\\_COOKIES: If this is set to `true` then caching will take place despite cookies. Responses are NOT varied by cookie  \n- SIMPLE\\_BACKEND: If this is set to `true` then varnish will simply use the\n  hostname `backend` as its backend.\n- IGNORE\\_QUERYSTRING\\_EXCLUDE: List of regexes separated by `~`. If any of them matches then the url will not ignore querystrings \n- HEALTHCHECK: if set to `true` then a probe will be set for all backends checking `/` for 2xx responses\n- HEALTHCHECK\\_URL: replace `/` as the url in the healthcheck\n- EXPECTED\\_RESPONSE: Expect this response instead of 200 for healthchecks\n\nEx. BACKEND\\_PREFIX `abc`, BACKEND_DIVIDER `-`:\n- `abc-v1` would match `abc` = `abc` and create a backend for the service\n- `abcd-v1` would match `abcd` != `abc` and discard the service\n\n# Important\nYou must make `/opt/tools` a volume in your container for this image to work.  \nThe actual content is unpacked into `/opt/tools` when the container is run\n\nBecause confd is run in the rancher-tools container and not in this sidekick container all options MUST be set in the\nrancher-tools container\n\n# Created configs\n- VARNISH_CONFIG: `/opt/varnish/etc/default.vcl` - 1 year grace  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Fdocker-varnish-stale-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipunkt%2Fdocker-varnish-stale-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Fdocker-varnish-stale-config/lists"}