{"id":20687067,"url":"https://github.com/jcsalterego/caddyfwd","last_synced_at":"2025-06-17T15:36:18.025Z","repository":{"id":66613187,"uuid":"472370042","full_name":"jcsalterego/caddyfwd","owner":"jcsalterego","description":"SSL forwarding (powered by caddy) with arbitrary hostnames.","archived":false,"fork":false,"pushed_at":"2022-03-22T17:28:57.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-17T16:37:31.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcsalterego.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":"2022-03-21T14:18:18.000Z","updated_at":"2022-03-21T14:29:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5120d16-188b-426b-9aae-964788f8caab","html_url":"https://github.com/jcsalterego/caddyfwd","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"8015f0d3cee0e3b7a39d47263f1121db207b6f13"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fcaddyfwd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fcaddyfwd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fcaddyfwd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fcaddyfwd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcsalterego","download_url":"https://codeload.github.com/jcsalterego/caddyfwd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242945844,"owners_count":20210762,"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":[],"created_at":"2024-11-16T22:55:42.098Z","updated_at":"2025-03-10T23:55:49.140Z","avatar_url":"https://github.com/jcsalterego.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"caddyfwd\n========\n\nSSL forwarding (powered by `caddy`) with arbitrary hostnames.\n\n### Usage\n\n```\n./caddyfwd [\u003clisten_host\u003e[:\u003clisten_port\u003e]] \u003cupstream_host\u003e[:\u003cupstream_port\u003e]\n```\n\n### Requirements\n\n* [caddy](https://caddyserver.com) and `caddy trust`\n* [jq](https://stedolan.github.io/jq/)\n\n### Examples\n\n#### Simple forward to `localhost:11111`\n\n```\n$ ./caddyfwd localhost:11111\nProxying localhost:443 -\u003e localhost:11111\n2022/03/21 14:14:50.645\tINFO\tadmin\tadmin endpoint started\n    {\"address\": \"tcp/localhost:2019\", \"enforce_origin\": false,\n    \"origins\": [\"localhost:2019\", \"[::1]:2019\", \"127.0.0.1:2019\"]}\n2022/03/21 14:14:50.646\tINFO\tserving initial configuration\n```\n\n#### Simple forward when `www.example.org` is mapped in your `/etc/hosts`\n\n```\n$ ./caddyfwd www.example.org localhost:11111\nProxying www.example.org:443 -\u003e localhost:11111\n2022/03/21 14:15:29.378\tINFO\tadmin\tadmin endpoint started\n    {\"address\": \"tcp/localhost:2019\", \"enforce_origin\": false,\n    \"origins\": [\"localhost:2019\", \"[::1]:2019\", \"127.0.0.1:2019\"]}\n2022/03/21 14:15:29.379\tINFO\tserving initial configuration\n```\n\n#### Mapping to a weird port and a nice check of your `/etc/hosts`\n\n```\n./caddyfwd www.example.net:38522 localhost:11111\nwarning: www.example.net missing from /etc/hosts\nProxying www.example.net:38522 -\u003e localhost:11111\n2022/03/21 14:17:23.709\tINFO\tadmin\tadmin endpoint started\n    {\"address\": \"tcp/localhost:2019\", \"enforce_origin\": false,\n    \"origins\": [\"localhost:2019\", \"[::1]:2019\", \"127.0.0.1:2019\"]}\n2022/03/21 14:17:23.709\tINFO\tserving initial configuration\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcsalterego%2Fcaddyfwd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcsalterego%2Fcaddyfwd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcsalterego%2Fcaddyfwd/lists"}