{"id":20453874,"url":"https://github.com/devyukine/cdn","last_synced_at":"2025-07-13T02:04:40.204Z","repository":{"id":64306274,"uuid":"247839659","full_name":"DevYukine/cdn","owner":"DevYukine","description":"serve \u0026 manage static hosted assets with ease!","archived":false,"fork":false,"pushed_at":"2020-03-22T00:06:13.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T23:18:13.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/DevYukine.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":"2020-03-16T23:50:52.000Z","updated_at":"2023-02-05T01:36:07.000Z","dependencies_parsed_at":"2023-01-15T10:45:41.862Z","dependency_job_id":null,"html_url":"https://github.com/DevYukine/cdn","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevYukine%2Fcdn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevYukine%2Fcdn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevYukine%2Fcdn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevYukine%2Fcdn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevYukine","download_url":"https://codeload.github.com/DevYukine/cdn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242005826,"owners_count":20056434,"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-11-15T11:14:13.476Z","updated_at":"2025-03-05T10:14:17.500Z","avatar_url":"https://github.com/DevYukine.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdn\n\nserve \u0026 manage static hosted assets with ease!\n\n## Getting Started\n\n### Run it\n\n1. Clone the repo `git clone https://github.com/DevYukine/cdn`\n2. Run it `go run .`\n\n### Docker\nYou can get the latest docker image with `docker pull devyukine/cdn`\n\n\n### Routes\n  - `GET` `/` Serve all the assets\n  - `POST` `/assets` Upload assets\n  - `PATCH` `/assets/{name}` Replace assets\n  - `DELETE` `/assets/{name}` Delete assets\n\n### Post/Patch File Upload\nYou need to send the file in `multipart/form-data` as the `file` key\n\n### Responses\nThe api will **always** respond with the application/json format\n\n### Filenames\nThe filename is defaulted to the name of the uploaded asset. If you want to generate a filename you can set the `generate_name` key to `true`, the cdn will respond with an object containing a `file_name` value\n\n### Prerequisites\n\n```\nGo 1.14+\n```\n\n## Deployment\n\nEnvironment Variables:\n  - `CONTENT_ROOT` The folder to save assets to\n  - `PORT` The port to run the server on\n  - `TOKEN` **Optional** A token which is required to add/replace/delete assets\n  - `REVERSE_PROXY` **Optional** If this instance runs behind a reverse proxy (e.g. nginx, HAProxy or apache) and should use forward header\n\n## Built With\n\n* [mux](https://github.com/gorilla/mux) - The http router used\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/DevYukine/cdn/tags). \n\n## Authors\n\n* **DevYukine** - *Initial work* - [DevYukine](https://github.com/DevYukine)\n\nSee also the list of [contributors](https://github.com/DevYukine/cdn/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevyukine%2Fcdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevyukine%2Fcdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevyukine%2Fcdn/lists"}