{"id":18617910,"url":"https://github.com/a-hilaly/svr","last_synced_at":"2025-07-05T18:04:41.834Z","repository":{"id":97856366,"uuid":"137359699","full_name":"a-hilaly/svr","owner":"a-hilaly","description":"Spawn http servers (Health check, redirection, SSL termination)","archived":false,"fork":false,"pushed_at":"2018-12-29T17:45:46.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T04:07:52.556Z","etag":null,"topics":["http-server","https-redirect","redirect"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-hilaly.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":"2018-06-14T13:09:16.000Z","updated_at":"2019-01-01T12:56:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"d73750a2-69e7-41be-bab7-995a0a7621fa","html_url":"https://github.com/a-hilaly/svr","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/a-hilaly%2Fsvr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-hilaly%2Fsvr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-hilaly%2Fsvr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-hilaly%2Fsvr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-hilaly","download_url":"https://codeload.github.com/a-hilaly/svr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239412485,"owners_count":19634016,"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":["http-server","https-redirect","redirect"],"created_at":"2024-11-07T03:42:51.937Z","updated_at":"2025-02-18T05:01:46.427Z","avatar_url":"https://github.com/a-hilaly.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svr \n\n[![CircleCI](https://circleci.com/gh/A-Hilaly/svr.svg?style=svg)](https://circleci.com/gh/A-Hilaly/svr)\n\n---\n\nCommand line to run simple servers for developpement purposes\n### features\n\n- http server responding to all patterns /*\n- http to https redirection server for all patterns\n- redicrection server for a specific pattern to unique url\n\n### Getting started\n\n```bash\ngo get -u github.com/a-hilaly/svr/...\n```\n\n### Usage\n\n```bash\nA collection of simple HTTP servers\n                - Simple HTTP server\n                - Simple HTTP proxy server\n                - HTTP to HTTPS proxy server\n\nUsage:\n  svr [flags]\n\nFlags:\n  -h, --help              help for svr\n  -s, --server string     Server type (default \"default\")\n  -n, --pattern string    pattern url (default \"/\")\n  -p, --port int          Server listening port (default 8080)\n  -r, --redirect string   pattern url (default \"http://www.google.com\")\n```\n\n## Examples\n\n##### simple server\n```bash\n$ svr -p 9000\n2018/12/29 17:39:39 Simple server\n2018/12/29 17:39:39 Listening on port 9000 (pattern: \"/\")\n\n$ curl localhost:9000\n``` \n\n##### redirection server\n\n```bash\n$ svr -s redirect -n /google -r https://google.com/\n2018/12/29 17:41:05 Proxy server\n2018/12/29 17:41:05 Listening on port 8000 (pattern: \"/google\")\n\n$ curl localhost:8000\n```\n\n##### http to https\n\n```\n$ svr http2https -p 8000\n2018/12/29 17:43:05 Http to https\n2018/12/29 17:43:05 Listening on port 8080 (pattern: \"/\")\n```\n\n### docker images:\n\n[hub.docker.io/r/ahilaly](https://cloud.docker.com/repository/docker/ahilaly/svr)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-hilaly%2Fsvr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-hilaly%2Fsvr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-hilaly%2Fsvr/lists"}