{"id":25391309,"url":"https://github.com/snowdreamtech/gserver","last_synced_at":"2026-02-04T22:38:27.729Z","repository":{"id":275926922,"uuid":"927638961","full_name":"snowdreamtech/gserver","owner":"snowdreamtech","description":"A Simple Static HTTP Server built with gin and golang. cross platform, zero configuation","archived":false,"fork":false,"pushed_at":"2025-06-19T00:29:27.000Z","size":149,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T15:04:41.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/snowdreamtech.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,"zenodo":null}},"created_at":"2025-02-05T09:44:46.000Z","updated_at":"2025-06-19T00:29:27.000Z","dependencies_parsed_at":"2025-02-28T03:31:55.072Z","dependency_job_id":"1a47f4d7-2c3f-4a83-837d-0f0f1a4b5d6f","html_url":"https://github.com/snowdreamtech/gserver","commit_stats":null,"previous_names":["snowdreamtech/gserver"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/snowdreamtech/gserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreamtech%2Fgserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreamtech%2Fgserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreamtech%2Fgserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreamtech%2Fgserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowdreamtech","download_url":"https://codeload.github.com/snowdreamtech/gserver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreamtech%2Fgserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29098242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T21:05:08.033Z","status":"ssl_error","status_checked_at":"2026-02-04T21:04:53.031Z","response_time":62,"last_error":"SSL_read: 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":[],"created_at":"2025-02-15T15:02:08.251Z","updated_at":"2026-02-04T22:38:27.710Z","avatar_url":"https://github.com/snowdreamtech.png","language":"Go","funding_links":[],"categories":["Go","命令行工具"],"sub_categories":[],"readme":"# gserver\n\n[![dockeri.co](https://dockerico.blankenship.io/image/snowdreamtech/gserver)](https://hub.docker.com/r/snowdreamtech/gserver)\n\nA Simple Static HTTP Server built with gin and golang. cross platform, zero configuation\n\n## Installation\n\n### Binary\n\n[Releases](https://github.com/snowdreamtech/gserver/releases/latest)\n\n### CLI\n\n```bash\ngo install github.com/snowdreamtech/gserver@latest\n```\n\n### Docker CLI\n\n#### [Dockerhub](https://hub.docker.com/r/snowdreamtech/gserver)\n\n```bash\ndocker pull snowdreamtech/gserver:latest\n  # snowdreamtech/gserver:alpine\n  # snowdreamtech/gserver:debian\n```\n\n#### [GitHub Container Registry](https://github.com/snowdreamtech/gserver/pkgs/container/gserver)\n\n```bash\ndocker pull ghcr.io/snowdreamtech/gserver:latest\n  # ghcr.io/snowdreamtech/gserver:alpine\n  # ghcr.io/snowdreamtech/gserver:debian\n```\n\n#### [Quay.io](https://quay.io/repository/snowdreamtech/gserver)\n\n```bash\ndocker pull quay.io/snowdreamtech/gserver:latest\n  # quay.io/snowdreamtech/gserver:alpine\n  # quay.io/snowdreamtech/gserver:debian\n```\n\n## Usage\n\n### CLI\n\n```bash\n$ gserver --help\nA Simple Static HTTP Server built with gin and golang.\n\nUsage:\n   [flags]\n   [command]       \n\nAvailable Commands:\n  completion  Generate the autocompletion script for the specified shell\n  env         Print  version and environment info\n  help        Help about any command\n  version     Print the version number of\n\nFlags:\n      --autoindex-exact-size           For the HTML format, specifies whether exact file sizes should be output in the directory listing,\n                                       or rather rounded to kilobytes, megabytes, and gigabytes.\n      --autoindex-time-format string   this is the AutoIndex Time Format. (default \"2006-01-02 15:04:05\")\n      --basic                          If it is set, we will use HTTP Basic authentication.\n\n                                       Used together with -u, --user \u003cuser:password\u003e.\n\n                                       Providing --basic multiple times has no extra effect.\n\n                                       Example:-u name:password --basic https://example.com\n  -c, --config string                  If it is not set, we will try with development.(json/env/ini/yaml/toml/hcl/properties\n      --contact-email string           HTTPS Contact Email\n      --enable-https                   If it is set, we will enable https.\n  -g, --gzip                           If it is set, we will compress with gzip. (default true)\n  -h, --help                           help for this command\n  -H, --host string                    Host optionally specifies the Http Address for the server to listen on,\n                                       in the form \"host:port\". If empty, \"host:\" (host localhost) is used.\n      --https-cert-dir string          HTTPS Cert Directory (default \"certs\")\n      --https-cert-file string         HTTPS Cert File\n      --https-domains stringArray      HTTPS Domains\n      --https-key-file string          HTTPS Key File\n      --https-port string              HTTPS PORT\n      --log-dir string                 The Log Directory which store access.log, error.log etc. (default \".\")\n  -P, --port string                    Port optionally specifies the TCP Port for the server to listen on,\n                                       in the form \"host:port\". If empty, \":port\" (port 8080) is used.\n      --preview-html                   For static web files, Whether preview them. (default true)\n      --rate-limiter string            Define a limit rate to several requests per hour.\n                                        You can also use the simplified format \"\u003climit\u003e-\u003cperiod\u003e\"\", with the given\n                                        periods:\n\n                                        * \"S\": second\n                                        * \"M\": minute\n                                        * \"H\": hour\n                                        * \"D\": day\n\n                                        Examples:\n\n                                        * 5 reqs/second: \"5-S\"\n                                        * 10 reqs/minute: \"10-M\"\n                                        * 1000 reqs/hour: \"1000-H\"\n                                        * 2000 reqs/day: \"2000-D\"\n                                         (default \"5-S\")\n      --read-timeout int               ReadTimeout is the maximum duration for reading the entire\n                                       request, including the body. A zero or negative value means\n                                       there will be no timeout.\n\n                                       Because ReadTimeout does not let Handlers make per-request\n                                       decisions on each request body's acceptable deadline or\n                                       upload rate, most users will prefer to use\n                                       ReadHeaderTimeout. It is valid to use them both. (default 10)\n      --referer-limiter                Limit by referer\n      --speed-limiter int               Specify  the  maximum  transfer  rate you want curl to use - for\n                                       downloads.\n                                       The given speed is measured in bytes/second,\n  -u, --user string                    Specify the user name and password to use for server authentication.\n\n                                       The user name and passwords are split up  on  the  first  colon,\n                                       which  makes  it impossible to use a colon in the user name with\n                                       this option. The password can, still. (default \"admin:admin\")\n      --write-timeout int              WriteTimeout is the maximum duration before timing out\n                                       writes of the response. It is reset whenever a new\n                                       request's header is read. Like ReadTimeout, it does not\n                                       let Handlers make decisions on a per-request basis.\n                                       A zero or negative value means there will be no timeout. (default 10)\n  -w, --wwwroot string                 By default, the wwwroot folder is treated as a web root folder.\n                                       Static files can be stored in any folder under the web root and accessed with a relative path to that root.\n\nUse \" [command] --help\" for more information about a command.\n\n```\n\n### Docker CLI\n\n```bash\ndocker run -d \\\n  --name=gserver \\\n  -e TZ=Etc/UTC \\\n  -p 8080:8080 \\\n  -p 8443:8443 \\\n  -v /path/to/gserver:/var/lib/gserver  \\\n  --restart unless-stopped \\\n  snowdreamtech/gserver:latest\n  # snowdreamtech/gserver:alpine\n  # snowdreamtech/gserver:debian\n```\n\n## License\n\n```bash\n(The MIT License)\n\nCopyright (c) 2023-present SnowdreamTech Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdreamtech%2Fgserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowdreamtech%2Fgserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdreamtech%2Fgserver/lists"}