{"id":16031821,"url":"https://github.com/realorangeone/unsplash-cache","last_synced_at":"2026-03-06T05:41:24.936Z","repository":{"id":145272320,"uuid":"616183371","full_name":"RealOrangeOne/unsplash-cache","owner":"RealOrangeOne","description":"An nginx config to cache unsplash, to get around their very annoying rate limit","archived":false,"fork":false,"pushed_at":"2024-07-02T20:44:50.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T04:12:36.640Z","etag":null,"topics":["cache","nginx","unsplash"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/theorangeone/unsplash-cache","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/RealOrangeOne.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},"funding":{"github":"RealOrangeOne","ko_fi":"theorangeone","liberapay":"theorangeone","custom":["https://theorangeone.net/support/"]}},"created_at":"2023-03-19T20:56:22.000Z","updated_at":"2024-07-02T20:44:51.000Z","dependencies_parsed_at":"2024-10-27T17:17:36.245Z","dependency_job_id":"0049cd8a-fa26-4d19-bc35-fa0b018cee21","html_url":"https://github.com/RealOrangeOne/unsplash-cache","commit_stats":{"total_commits":18,"total_committers":3,"mean_commits":6.0,"dds":"0.38888888888888884","last_synced_commit":"9a96991fbda6e10cd5b9a35d0a79502aff9fbbdc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrangeOne%2Funsplash-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrangeOne%2Funsplash-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrangeOne%2Funsplash-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrangeOne%2Funsplash-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RealOrangeOne","download_url":"https://codeload.github.com/RealOrangeOne/unsplash-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241367132,"owners_count":19951440,"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":["cache","nginx","unsplash"],"created_at":"2024-10-08T21:06:01.546Z","updated_at":"2026-03-06T05:41:24.883Z","avatar_url":"https://github.com/RealOrangeOne.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/RealOrangeOne","https://ko-fi.com/theorangeone","https://liberapay.com/theorangeone","https://theorangeone.net/support/"],"categories":[],"sub_categories":[],"readme":"# unsplash-cache\n\nAn nginx config to cache [unsplash](DOCKERHUB_TOKEN), to get around their very annoying rate limit\n\nUnsplash has a rate limit of 50 requests per hour for unverified API clients. Their verification process is rather complex (and the use case of a static-site generator is apparently unheard off), so there needs to be an alternative.\n\nThis `nginx` config (and resulting Docker container) caches Unsplash's API, allowing it to act as a centralised cache for API requests, bypassing the API restrictions. A valid API token is still required.\n\n## Usage\n\n```yml\nversion: \"2.3\"\n\nservices:\n  web:\n    image: theorangeone/unsplash-cache:latest\n    tmpfs:\n      - /tmp/unsplash-cache\n    ports:\n      - \"80:80\"\n```\n\nIf you want the cache to persist between container restarts, mount `/tmp/unsplash-cache` to a given directory.\n\nInstead of sending requests to `api.unsplash.com`, send them to this container instead.\n\n## Caching\n\n- Cached responses are kept for 21 days.\n- The cache cannot grow beyond 1GB.\n- The cache key size should store around 10k records\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealorangeone%2Funsplash-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealorangeone%2Funsplash-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealorangeone%2Funsplash-cache/lists"}