{"id":24908838,"url":"https://github.com/sgrankin/tsnet-proxy","last_synced_at":"2026-05-01T15:38:24.632Z","repository":{"id":232715124,"uuid":"785008650","full_name":"sgrankin/tsnet-proxy","owner":"sgrankin","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-14T18:41:13.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T02:33:47.154Z","etag":null,"topics":["tailscale","tsnet"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sgrankin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-04-11T02:12:04.000Z","updated_at":"2024-10-14T18:41:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1ca3d48-fc4a-4123-aef9-a33fdb033103","html_url":"https://github.com/sgrankin/tsnet-proxy","commit_stats":null,"previous_names":["sgrankin/tsnet-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgrankin%2Ftsnet-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgrankin%2Ftsnet-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgrankin%2Ftsnet-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgrankin%2Ftsnet-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgrankin","download_url":"https://codeload.github.com/sgrankin/tsnet-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245949544,"owners_count":20698920,"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":["tailscale","tsnet"],"created_at":"2025-02-02T02:33:55.281Z","updated_at":"2026-05-01T15:38:24.568Z","avatar_url":"https://github.com/sgrankin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tsnet-proxy\n\nUsing [tsnet](https://tailscale.com/kb/1244/tsnet), the proxy presents a service node on your network.\n\n- HTTP (or HTTPS) traffic is forwarded to a specific port.\n- Headers are attached with the authenticated tailscale user, so you can use this for auth.\n- Auxiliary ports may be forwarded.\n\n## Installation\n\n`go install sgrankin.dev/tsnet-proxy@latest`\n\n## Usage\n\n```\nUsage of tsnet-proxy:\n  -config-dir string\n        Directory to use for tailnet state\n  -forward value\n        Forward extra ports.  FROM_PORT[:TO_ADDR]:TO_PORT[/NETWORK]\n  -hostname string\n        Hostname to use on the tailnet\n  -http string\n        Address to forward HTTP requests to (default \"127.0.0.1:80\")\n  -https\n        Serve over HTTPS if enabled on the tailnet (default true)\n  -verbose\n        Be verbose\n```\n\n### Example: Gerrit\n\n```sh\n%h/go/bin/tsnet-proxy \n    -config-dir=${HOME}/.config/gerrit \n    -hostname=gerrit \n    -http=localhost:10971 \n    -forward=22:29418 \n    -https\n```\n\n```\n; cat gerrit.config \n[gerrit]\n        canonicalWebUrl = http://gerrit/\n[auth]\n        type = http\n        httpHeader = Tailscale-Login\n        httpDisplaynameHeader = Tailscale-Name\n\n[sshd]\n        listenAddress = 127.0.0.1:29418\n        advertisedAddress = gerrit\n\n[httpd]\n        listenUrl = http://127.0.0.1:10971/\n\n```\n\n### Example: Grafana\n\n```sh\n%h/go/bin/tsnet-proxy \n    -config-dir=${HOME}/.config/grafana \n    -hostname=grafana \n    -http=localhost:3000 \n    -https\n```\n\n```\n; cat grafana.ini\n[auth.proxy]\nauto_sign_up = true\nenable_login_token = true\nenabled = true\nheader_name = Tailscale-Login\nheader_property = username\nheaders = Name:Tailscale-Name\nwhitelist = 127.0.0.1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgrankin%2Ftsnet-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgrankin%2Ftsnet-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgrankin%2Ftsnet-proxy/lists"}