{"id":25220428,"url":"https://github.com/adridevelopsthings/apt-cache","last_synced_at":"2025-04-05T11:21:18.721Z","repository":{"id":187016710,"uuid":"675811105","full_name":"AdriDevelopsThings/apt-cache","owner":"AdriDevelopsThings","description":"A simple apt repository cache","archived":false,"fork":false,"pushed_at":"2023-08-08T15:49:19.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T21:53:13.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdriDevelopsThings.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}},"created_at":"2023-08-07T19:27:37.000Z","updated_at":"2023-08-08T15:43:20.000Z","dependencies_parsed_at":"2023-08-08T17:48:22.093Z","dependency_job_id":null,"html_url":"https://github.com/AdriDevelopsThings/apt-cache","commit_stats":null,"previous_names":["adridevelopsthings/apt-cache"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fapt-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fapt-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fapt-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fapt-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdriDevelopsThings","download_url":"https://codeload.github.com/AdriDevelopsThings/apt-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247326583,"owners_count":20920872,"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":"2025-02-10T21:53:17.493Z","updated_at":"2025-04-05T11:21:18.689Z","avatar_url":"https://github.com/AdriDevelopsThings.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apt-cache\nA simple apt repository cache\n\n## Installation\nRun apt-cache by building it yourself with `cargo` or using docker:\n```\ndocker run --name apt-cache -v ./cache:/cache -v ./config.toml:/config.toml -p 80:80 -d ghcr.io/adridevelopsthings/apt-cache:main\n```\n\n## Configuration\nThe `config.toml` should look like this\n```toml\ncache_directory = \"cache\" # not required, this is the default value\ncache_ttl = 1440 # not required, this is the default value, ttl in minutes\ndisable_logging = false # not required, this is the default value\n\n# some examples for repositories\n[[repository]]\nname = \"ubuntu-ports\"\nurl = \"http://ports.ubuntu.com/ubuntu-ports/\"\n\n[[repository]]\nname = \"ubuntu-archive\"\nurl = \"http://de.archive.ubuntu.com/ubuntu/\"\n```\n\n## How to use now?\n\nJust replace for example `http://ports.ubuntu.com/ubuntu-ports/` with `http://apt_cache_ip/ubuntu-ports/`. The first part of the path of apt-cache must be the repostiroy name. Apt-cache will resolve the name to the url to make the request to the repository.\n\n## Environment variables\n| Variable         | Description                                           | Default                               |\n| ---------------- | ----------------------------------------------------- | ------------------------------------- |\n| `LISTEN_ADDRESS` | The address where apt-cache should listen             | `127.0.0.1:8000`, docker=`0.0.0.0:80` |\n| `CACHE_PATH`     | Override the `cache_directory` from the `config.toml` | `cache`, docker=`/cache`              |\n| `CONFIG_PATH`    | The path where the config file is (TOML)              | `config.toml`, docker=`/config.toml`  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadridevelopsthings%2Fapt-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadridevelopsthings%2Fapt-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadridevelopsthings%2Fapt-cache/lists"}