{"id":48266721,"url":"https://github.com/2manymws/rp","last_synced_at":"2026-04-04T21:56:02.067Z","repository":{"id":190623229,"uuid":"683078719","full_name":"2manymws/rp","owner":"2manymws","description":"rp is a reverse proxy package for multiple domains and multiple upstreams.","archived":false,"fork":false,"pushed_at":"2024-09-09T09:45:33.000Z","size":102,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-05T16:50:44.554Z","etag":null,"topics":["go","reverse-proxy"],"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/2manymws.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-08-25T14:45:58.000Z","updated_at":"2024-09-09T09:44:37.000Z","dependencies_parsed_at":"2023-08-25T16:16:20.788Z","dependency_job_id":"9b6e655d-b518-409b-aea6-076fd02c3794","html_url":"https://github.com/2manymws/rp","commit_stats":null,"previous_names":["k1low/rp","2manymws/rp"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/2manymws/rp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2manymws%2Frp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2manymws%2Frp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2manymws%2Frp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2manymws%2Frp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2manymws","download_url":"https://codeload.github.com/2manymws/rp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2manymws%2Frp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31415825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":["go","reverse-proxy"],"created_at":"2026-04-04T21:56:01.242Z","updated_at":"2026-04-04T21:56:02.056Z","avatar_url":"https://github.com/2manymws.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rp [![Go Reference](https://pkg.go.dev/badge/github.com/2manymws/rp.svg)](https://pkg.go.dev/github.com/2manymws/rp) [![build](https://github.com/2manymws/rp/actions/workflows/ci.yml/badge.svg)](https://github.com/2manymws/rp/actions/workflows/ci.yml) ![Coverage](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/2manymws/rp/coverage.svg) ![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/2manymws/rp/ratio.svg) ![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/2manymws/rp/time.svg)\n\n`rp` is a **r**everse **p**roxy package for multiple domains and multiple upstreams.\n\n## Usage\n\nPrepare an instance that implements [`rp.Relayer`](https://pkg.go.dev/github.com/2manymws/rp#Relayer) interface.\n\nAnd then, create a new `http.Server` using [`rp.NewServer`](https://pkg.go.dev/github.com/2manymws/rp#NewServer) or [`rp.NewTLSServer`](https://pkg.go.dev/github.com/2manymws/rp#NewTLSServer) with the instance.\n\nUse [`rp.NewServer`](https://pkg.go.dev/github.com/2manymws/rp#NewServer) ( [`rp.ListenAndServe`](https://pkg.go.dev/github.com/2manymws/rp#ListenAndServe) ) if handling per-domain (or per-request, as the case may be) upstreams.\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"net/http\"\n\n    \"github.com/2manymws/rp\"\n)\n\nfunc main() {\n    var r rp.Relayer = newMyRelayer()\n    log.Fatal(rp.ListenAndServe(\":80\", r))\n}\n```\n\nUse [`rp.NewTLSServer`](https://pkg.go.dev/github.com/2manymws/rp#NewTLSServer) ( [`rp.ListenAndServeTLS`](https://pkg.go.dev/github.com/2manymws/rp#ListenAndServeTLS) )if handling per-domain TLS termination as well as per-domain HTTP request routing.\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"net/http\"\n\n    \"github.com/2manymws/rp\"\n)\n\nfunc main() {\n    var r rp.Relayer = newMyRelayer()\n    log.Fatal(rp.ListenAndServeTLS(\":443\", r))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2manymws%2Frp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2manymws%2Frp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2manymws%2Frp/lists"}