{"id":19273596,"url":"https://github.com/zikwall/go-fileserver","last_synced_at":"2026-06-08T23:32:13.899Z","repository":{"id":48367260,"uuid":"335333263","full_name":"zikwall/go-fileserver","owner":"zikwall","description":"Simple, Powerful and Productive file server written in Go with authentication support (JWT, token, HTTP Basic)","archived":false,"fork":false,"pushed_at":"2021-07-29T17:09:51.000Z","size":38,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T20:43:54.337Z","etag":null,"topics":["file-upload","fileserver","go","golang","server","storage","webdav"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zikwall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-02T15:23:38.000Z","updated_at":"2023-03-21T10:54:13.000Z","dependencies_parsed_at":"2022-08-29T17:12:06.503Z","dependency_job_id":null,"html_url":"https://github.com/zikwall/go-fileserver","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zikwall/go-fileserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikwall%2Fgo-fileserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikwall%2Fgo-fileserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikwall%2Fgo-fileserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikwall%2Fgo-fileserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zikwall","download_url":"https://codeload.github.com/zikwall/go-fileserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikwall%2Fgo-fileserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34085321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["file-upload","fileserver","go","golang","server","storage","webdav"],"created_at":"2024-11-09T20:43:35.085Z","updated_at":"2026-06-08T23:32:13.878Z","avatar_url":"https://github.com/zikwall.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build](https://github.com/zikwall/go-fileserver/workflows/tests/badge.svg)](https://github.com/zikwall/go-fileserver/actions)\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eGo-fileserver\u003c/h1\u003e\n  \u003ch5\u003eSimple, Powerful and Productive file server written in Go\u003c/h5\u003e\n\u003c/div\u003e\n\n### Options\n\n| Name                                | Env                     | \n| :---------------------------------: | :---------------------: |\n| `bind-address` (`0.0.0.0:1337`)     |  `BIND_ADDRESS`         |\n| `token`                             |  `TOKEN`                |\n| `root-file-directory` (`./tmp`)     |  `ROOT_FILE_DIRECTORY`  |\n| `enable-secure` (`false`)           |  `ENABLE_SECURE`        |\n| `secure-type` (`0`)                 |  `SECURE_TYPE`          |\n| `users` (`./tmp`)                   |  `USERS`                |\n\n### Authorization types\n\n- [x] Simple token auth (default)\n\n```shell\n--secure-type 0\n--enable-secure\n--token='token_here'\n```\n\n- __token__: With this parameter, you can protect yourself from unauthorized access, it can be empty, if empty-it is generated automatically\n\nFrom              | Usage \n---               | --- | \nRequest header    | `Authorization: Bearer \u003ctoken\u003e`\nQuery param       | `?token=\u003ctoken\u003e` \nForm value        | `token=\u003ctoken\u003e`\n\n- [x] HTTP Basic auth\n\n```shell\n--secure-type 1\n--enable-secure\n--users='qwx:1337'\n--users='qwx2:13372'\n--users='qwx3:13373'\n```\n\n- [ ] JWT based auth\n\n```shell\n// todo\n```\n\n### How to use?\n\n#### with single file (basic requests)\n\n```shell\n$ curl -i -X POST \\\n    -H \"Content-Type: multipart/form-data\" \\\n    -F \"file=@.gitignore\" \\\n    http://localhost:1337?token=123456\n```\n\n```shell\n$ curl -i -X POST \\\n    -H \"Content-Type: multipart/form-data\" \\\n    -F \"file=@.gitignore\" \\\n    http://qwx:1337@localhost:1337\n```\n\n```shell\n// todo\n```\n\n#### with multiple files\n\n```shell\n$ curl -i -X POST \\\n    -H \"Content-Type: multipart/form-data\" \\\n    -F \"files[]=@.gitignore\" \\\n    -F \"files[]=@README.md\" \\\n    http://localhost:1337?token=123456\n```\n\n#### with data binary format\n\n```shell\n$ curl -i -X POST \\\n    --data-binary @.gitignore \\\n    http://localhost:1337/.gitignore?token=123456\n```\n\u003e The name from the request URI will be taken into account as the file name\n\n### How to view files\n\nTo view the files just click on the link with the domain, and the file name at the end: \n\n**Simple**\n\u003e http://localhost:1337/.gitignore?token=123456\n\n**HTTP Basic**\n\u003e http://qwx:1337@localhost:1337/.gitignore\n\n### How to run?\n\n- `$ git clone https://github.com/zikwall/go-fileserver`\n- `$ go run . --bind-address localhost:1337 --token 123456 --enable-secure`\n\n#### with Docker\n\n```shell\n$ docker run -d -p 1338:1338 \\\n  -e BIND_ADDRESS='0.0.0.0:1338' \\\n  -e SECURE_TYPE=1 \\\n  -e USERS='username:password' \\\n  -e ENABLE_SECURE='true' \\\n  -e ENABLE_TSL='true' \\\n  -e TSL_CERT_FILE='/mnt/ssl.cert' \\\n  -e TSL_KEY_FILE='/mnt/ssl.key' \\\n  -v $HOME/tmp:/app/tmp \\\n  -v $PWD:/mnt \\\n  --name go-fileserver-example qwx1337/go-fileserver:latest\n```\n\n### Tests\n\n- `$ go test -v ./...`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzikwall%2Fgo-fileserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzikwall%2Fgo-fileserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzikwall%2Fgo-fileserver/lists"}