{"id":19026775,"url":"https://github.com/songgao/static","last_synced_at":"2025-04-23T12:58:53.689Z","repository":{"id":142594002,"uuid":"53810200","full_name":"songgao/static","owner":"songgao","description":"A super simple yaml-configured static file server.","archived":false,"fork":false,"pushed_at":"2016-10-02T07:24:29.000Z","size":5,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T12:58:46.181Z","etag":null,"topics":["go","web"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/songgao.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":"2016-03-13T22:06:36.000Z","updated_at":"2020-11-05T15:12:20.000Z","dependencies_parsed_at":"2023-03-25T08:58:58.171Z","dependency_job_id":null,"html_url":"https://github.com/songgao/static","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/songgao%2Fstatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songgao%2Fstatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songgao%2Fstatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songgao%2Fstatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/songgao","download_url":"https://codeload.github.com/songgao/static/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250439282,"owners_count":21430822,"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":["go","web"],"created_at":"2024-11-08T20:50:37.336Z","updated_at":"2025-04-23T12:58:53.676Z","avatar_url":"https://github.com/songgao.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# static\n\n`static` is a super simple yaml-configured static file server that serves directories without authentication (over HTTP and HTTPS), or with HTTP Basic Authentication (over HTTPS only).\n\n## Usage\n\n```\n$ ./static -h\nUsage of ./static:\n  -config string\n      path to configuration file\n  -gen-config\n      generate example config file and print to stdout\n```\n\n## Example Configuration\n\n```\n$ ./static -gen-config\nlogging: false\nhttp_laddr: :80\nhttps_laddr: :443\ntls_cert_path: /etc/blah/example.cert\ntls_key_path: /etc/blah/example.key\npublic_dirs:\n- dir_path: /etc/www/pub1.com\n  http_path: /pub1/\n- dir_path: /etc/www/pub2\n  http_path: /pub2/\nauthenticated_dirs:\n- dir_path: /etc/www/secret\n  http_path: /secret/\n  usernames:\n  - john\n  - ha\nusers:\n  ha: eioj\n  huh: fjweoifj\n  john: efjio\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonggao%2Fstatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonggao%2Fstatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonggao%2Fstatic/lists"}