{"id":20375066,"url":"https://github.com/leelow/serve","last_synced_at":"2026-05-03T13:41:48.960Z","repository":{"id":93081656,"uuid":"108899840","full_name":"Leelow/serve","owner":"Leelow","description":"📄 🐳 Static file serving and directory listing.","archived":false,"fork":false,"pushed_at":"2017-10-31T19:24:48.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T07:03:34.509Z","etag":null,"topics":["docker","index","micro","serve","server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Leelow.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":"2017-10-30T19:39:39.000Z","updated_at":"2019-07-16T20:05:54.000Z","dependencies_parsed_at":"2023-06-26T01:17:49.790Z","dependency_job_id":null,"html_url":"https://github.com/Leelow/serve","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leelow%2Fserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leelow%2Fserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leelow%2Fserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leelow%2Fserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leelow","download_url":"https://codeload.github.com/Leelow/serve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241923884,"owners_count":20043096,"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":["docker","index","micro","serve","server"],"created_at":"2024-11-15T01:28:40.939Z","updated_at":"2026-05-03T13:41:43.942Z","avatar_url":"https://github.com/Leelow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serve\n\n[![Travis Status][travis-image]][travis-url]\n[![Docker Status][docker-image]][docker-url]\n\n## Usage\n\n### Pull image\n\n```bash\ndocker pull leelow29/serve\n```\n\n### Options\n\nThe default credentials are `user:password`. There are several options to custom with environment variables:\n\n* `SERVE_USER`        Redefine login (`user` by default).\n* `SERVE_PASSWORD`    Redefine password (`password` by default).\n* `SERVE_INDEX`       Display index page (enabled by default).\n* `SERVE_CORS`        Setup * CORS headers to allow requests from any origin (enabled by default).\n* `SERVE_DELAY`       Define a delay (in seconds) to stop the container (disabled by default).\n\nFor instance, to disable CORS, set `SERVE_CORS` to `0`.\n\n### Examples\n\nA container which serves directory `/dir/files` with default credentials (user:password).\n\n```bash\ndocker run --name serve -d -p 443:443 -v /dir/files:/app/files leelow29/serve:latest\n```\n\nA container with custom credentials:\n\n```bash\ndocker run --name serve -d -p 443:443 -v /dir/files:/app/files -e SERVE_USER=admin -e SERVE_PASSWORD=pass leelow29/serve:latest\n```\n\nA container which will stop after 5 minutes:\n\n```bash\ndocker run --name serve -d -p 443:443 -v /dir/files:/app/files -e SERVE_DELAY=300 leelow29/serve:latest\n```\n\n## Build\n\n```bash\ngit clone https://github.com/Leelow/serve.git\ncd serve\ndocker build -t serve .\n```\n\n## Credits\n\nThis docker image is based on awesome [@leo](https://github.com/leo) work: [https://github.com/zeit/serve](https://github.com/zeit/serve).\n\n## License\n\n[MIT](LICENSE)\n\n[travis-image]: https://travis-ci.org/Leelow/serve.svg?branch=master\n[travis-url]: https://travis-ci.org/Leelow/serve\n[docker-image]: https://img.shields.io/docker/build/leelow29/serve.svg\n[docker-url]: https://hub.docker.com/r/leelow29/serve/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleelow%2Fserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleelow%2Fserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleelow%2Fserve/lists"}