{"id":15396604,"url":"https://github.com/hupe1980/fileserve","last_synced_at":"2025-03-28T00:17:19.456Z","repository":{"id":57641277,"uuid":"434630284","full_name":"hupe1980/fileserve","owner":"hupe1980","description":"Golang-based simple file server to serve files of the current working directory","archived":false,"fork":false,"pushed_at":"2021-12-06T14:07:58.000Z","size":138,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-02T02:14:04.686Z","etag":null,"topics":["cli","fileserver","golang","portable"],"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/hupe1980.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-12-03T14:45:57.000Z","updated_at":"2022-01-09T05:35:05.000Z","dependencies_parsed_at":"2022-09-05T07:41:31.932Z","dependency_job_id":null,"html_url":"https://github.com/hupe1980/fileserve","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Ffileserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Ffileserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Ffileserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Ffileserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hupe1980","download_url":"https://codeload.github.com/hupe1980/fileserve/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245944108,"owners_count":20697960,"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":["cli","fileserver","golang","portable"],"created_at":"2024-10-01T15:34:21.946Z","updated_at":"2025-03-28T00:17:19.437Z","avatar_url":"https://github.com/hupe1980.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fileserve\n![Build Status](https://github.com/hupe1980/fileserve/workflows/build/badge.svg) \n[![Go Reference](https://pkg.go.dev/badge/github.com/hupe1980/fileserve.svg)](https://pkg.go.dev/github.com/hupe1980/fileserve)\n\u003e Golang-based simple file server to serve static files of the current working directory\n- File sharing in LAN or home network\n- Web application testing\n- Personal web site hosting or demonstrating\n\n## Features\n- Directory listing\n- Filter dot files\n- Cors or NoCache headers\n- HTTPS with self-signed certificate\n- BasicAuth\n- Custom HTTP headers\n\n## Installing\nYou can install the pre-compiled binary in several different ways\n\n### homebrew tap:\n```bash\nbrew tap hupe1980/fileserve\nbrew install fileserve\n```\n\n### snapcraft:\n[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/fileserve)\n```bash\nsudo snap install fileserve\n```\n\n### scoop:\n```bash\nscoop bucket add fileserve https://github.com/hupe1980/fileserve-bucket.git\nscoop install fileserve\n```\n\n### deb/rpm/apk:\n\nDownload the .deb, .rpm or .apk from the [releases page](https://github.com/hupe1980/fileserve/releases) and install them with the appropriate tools.\n\n### manually:\nDownload the pre-compiled binaries from the [releases page](https://github.com/hupe1980/fileserve/releases) and copy to the desired location.\n\n## How to use\n```bash\nfileserve is a tiny go based file server\n\nUsage:\n  fileserve [root] [flags]\n\nExamples:\n- serve the current working dir: fileserve\n- add basic auth: fileserve -a user1:pass1 -a user2:pass2\n- add custom http headers: fileserve --header Test=ABC --header Foo=Bar\n- disable serving of dot files: fileserve --no-dot\n\nFlags:\n  -a, --auth stringArray        turn on basic auth and set username and password (separate by colon)\n  -b, --bind string             bind to a specific interface (default \"0.0.0.0\")\n      --cors                    allow cross origin requests to be served\n      --header stringToString   add custom http headers (default [])\n  -h, --help                    help for fileserve\n  -s, --https                   serve with a temp self-signed certificate via HTTPS\n      --no-cache                disable caching for the file server\n      --no-dir                  turn off directory listing\n      --no-dot                  disable serving of dot files\n  -p, --port int                port to serve on (default 8000)\n  -v, --version                 version for fileserve\n```\n\nOr use the module to create your own portable:\n* [nextjs-portable example](_examples/nextjs-portable) \n\n## License\n[MIT](LICENCE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhupe1980%2Ffileserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhupe1980%2Ffileserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhupe1980%2Ffileserve/lists"}