{"id":13713669,"url":"https://github.com/udhos/gowebhello","last_synced_at":"2025-05-08T01:40:56.310Z","repository":{"id":56276971,"uuid":"81972212","full_name":"udhos/gowebhello","owner":"udhos","description":"gowebhello is a simple golang replacement for 'python -m SimpleHTTPServer'.","archived":false,"fork":false,"pushed_at":"2020-11-17T12:07:55.000Z","size":43,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T16:14:00.312Z","etag":null,"topics":["go","golang","http","simplehttpserver","web"],"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/udhos.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":"2017-02-14T17:42:00.000Z","updated_at":"2023-05-15T11:10:24.000Z","dependencies_parsed_at":"2022-08-15T15:50:45.785Z","dependency_job_id":null,"html_url":"https://github.com/udhos/gowebhello","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fgowebhello","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fgowebhello/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fgowebhello/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fgowebhello/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udhos","download_url":"https://codeload.github.com/udhos/gowebhello/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252983761,"owners_count":21835758,"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","golang","http","simplehttpserver","web"],"created_at":"2024-08-02T23:01:41.822Z","updated_at":"2025-05-08T01:40:56.289Z","avatar_url":"https://github.com/udhos.png","language":"Go","readme":"[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/udhos/gowebhello/blob/master/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/udhos/gowebhello)](https://goreportcard.com/report/github.com/udhos/gowebhello)\n\n# gowebhello\n\ngowebhello is a simple golang replacement for 'python -m SimpleHTTPServer'.\ngowebhello can also be configured as an HTTPS web server using SSL certificates.\n\n# Usage\n\n## HTTPS\n\nIf you want to use TLS, you will need a certificate:\n\n    $ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem\n\n## Building\n\n### Without Modules, before Go 1.11\n\n    # make sure GOPATH is either unset or properly set\n    go get github.com/udhos/gowebhello\n    go install github.com/udhos/gowebhello\n\n### With Modules, starting from Go 1.11\n\n    git clone https://github.com/udhos/gowebhello ;# clone outside of GOPATH\n    cd gowebhello\n    go install ./gowebhello\n\n## Running\n\nUse the '-h' switch to get command line help.\n\n    $ gowebhello -h\n\n## Example with TLS\n\nEnable TLS by providing a certificate.\nIf you enable TLS, HTTP port will be redirected to HTTPS port.\n\n    $ ~/go/bin/gowebhello\n    2017/06/08 11:24:03 registering static directory /home/lab/go/src/github.com/udhos/gowebhello as www path /www/\n    2017/06/08 11:24:03 using TCP ports HTTP=:8080 HTTPS=:8443 TLS=true\n    2017/06/08 11:24:03 installing redirect from HTTP=:8080 to HTTPS=8443\n    2017/06/08 11:24:03 serving HTTPS on TCP :8443\n\n    Then open https://localhost:8443\n\n## Example without TLS\n\nIf you do not provide a certificate, TLS will be disabled.\n\n    $ ~/go/bin/gowebhello -cert=badcert\n    2017/06/08 11:25:01 TLS cert file not found: badcert - disabling TLS\n    2017/06/08 11:25:01 registering static directory /home/lab/go/src/github.com/udhos/gowebhello as www path /www/\n    2017/06/08 11:25:01 using TCP ports HTTP=:8080 HTTPS=:8443 TLS=false\n    2017/06/08 11:25:01 serving HTTP on TCP :8080\n\n    Then open http://localhost:8080\n\n## Example with HTTPS only\n\nYou can disable HTTP by specifying the same port to both -addr and -httpsAddr.\n\n    $ ~/go/bin/gowebhello -addr :8443 -httpsAddr :8443\n    2017/06/08 11:25:46 registering static directory /home/lab/go/src/github.com/udhos/gowebhello as www path /www/\n    2017/06/08 11:25:46 using TCP ports HTTP=:8443 HTTPS=:8443 TLS=true\n    2017/06/08 11:25:46 serving HTTPS on TCP :8443\n\n# Container image\n\nFind a small container image for gowebhello as `udhos/web-scratch` here:\n\nhttps://hub.docker.com/r/udhos/web-scratch\n\n#END\n","funding_links":[],"categories":["Repositories"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fgowebhello","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudhos%2Fgowebhello","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fgowebhello/lists"}