{"id":36852719,"url":"https://github.com/nipeharefa/gitu","last_synced_at":"2026-01-12T14:39:36.030Z","repository":{"id":52576401,"uuid":"342911828","full_name":"nipeharefa/gitu","owner":"nipeharefa","description":"Simple Static File server with config. Inspired from Vercel.","archived":false,"fork":false,"pushed_at":"2021-04-25T09:22:06.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-27T21:54:24.242Z","etag":null,"topics":["golang","static-file","static-server"],"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/nipeharefa.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-02-27T17:08:40.000Z","updated_at":"2022-09-16T14:05:06.000Z","dependencies_parsed_at":"2022-09-23T12:54:11.843Z","dependency_job_id":null,"html_url":"https://github.com/nipeharefa/gitu","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nipeharefa/gitu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nipeharefa%2Fgitu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nipeharefa%2Fgitu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nipeharefa%2Fgitu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nipeharefa%2Fgitu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nipeharefa","download_url":"https://codeload.github.com/nipeharefa/gitu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nipeharefa%2Fgitu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["golang","static-file","static-server"],"created_at":"2026-01-12T14:39:35.004Z","updated_at":"2026-01-12T14:39:35.993Z","avatar_url":"https://github.com/nipeharefa.png","language":"Go","readme":"Gitu\n====\n\nSimple Static File server with config, inspired from Vercel. With gitu you can configure cache, add custome header and redirect like rules in another platform like firebase, vercel, and other.\n## Getting Started\n\n## Using Docker\n\n```\nFROM alpine:3.10\n\nWORKDIR /app\n\n# USER apps\nRUN mkdir static\n\nCOPY --from=docker.io/nipeharefa/gitu:0.0.6 /app/main main\nCOPY --from=builder /app/build ./static/\nCOPY now.json now.json\n\nCMD [ \"/app/main\" ]\n```\n\n\n### Example\n\nCreate static directory, and create static content\n```\nmkdir static \u0026\u0026 cd static\ntouch index.html\nmkdir css jss\ntouch css/index.css\n```\n\nCreate new file configuration\n```\ntouch now.json\n```\n\nand add simple config to file\n```\n{\n  \"routes\": [\n    {\n      \"src\": \"/\",\n      \"headers\": {\n        \"cache-control\": \"no-cache\"\n      }\n    },\n    {\n      \"src\": \"/(js|css)/\",\n      \"headers\": {\n        \"cache-control\": \"public, s-maxage=15552000, max-age=15552000, must-revalidate\"\n      }\n    },\n    {\n      \"src\": \"/(.*)\",\n      \"rewrite\": \"/\"\n    }\n  ]\n}\n```\nand run gitu\n```\ngitu\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnipeharefa%2Fgitu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnipeharefa%2Fgitu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnipeharefa%2Fgitu/lists"}