{"id":17337805,"url":"https://github.com/dio/proxy","last_synced_at":"2025-03-27T08:12:46.364Z","repository":{"id":43188116,"uuid":"466704718","full_name":"dio/proxy","owner":"dio","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-15T03:39:24.000Z","size":99,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T13:12:26.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dio.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":"2022-03-06T10:31:53.000Z","updated_at":"2023-08-09T02:15:02.000Z","dependencies_parsed_at":"2022-08-31T15:31:45.747Z","dependency_job_id":null,"html_url":"https://github.com/dio/proxy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dio%2Fproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dio%2Fproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dio%2Fproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dio%2Fproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dio","download_url":"https://codeload.github.com/dio/proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806458,"owners_count":20675298,"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-10-15T15:36:15.762Z","updated_at":"2025-03-27T08:12:46.343Z","avatar_url":"https://github.com/dio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# proxy\n\n## Installation\n\n```console\ncurl https://dio.github.io/proxy/install.sh | bash -s -- -b /usr/local/bin\n```\n\n\u003e Note: By default the script installs (if executed without `-- -b /usr/local/bin`) in the current\n\u003e directory: `./bin/proxy`.\n\n## Running\n\nTo generate a proxy config with specified admin and stats ports:\n\n```console\nproxy --admin-port 9000 --stats-port 9001 --output a.yaml\n```\n\nThen you can run proxy with that config:\n\n```console\nproxy -- -c ./a.yaml\n```\n\n`proxy` comes with its own xDS server implementation that watches a directory with proxy configs in\nit. As an example, see: [testdata/hello](./testdata/hello/).\n\n```console\nproxy --xds-resources testdata/hello --admin-port 9000\n```\n\n\u003e Note: you can start with a non-existent directory as argument for `--xds-resources`.\n\nThis starts proxy with configurations defined in `testdata/hello/*.yaml`. Note that it watches\nchanges inside that directory. For example, if you change the listener address for `listener_0` in\n[`testdata/hello/a.yaml`](./testdata/hello/a.yaml), e.g. from `10000` to `10001` it will immediately\nreflected (this can be checked by visiting the admin interface, in this example:\nhttps://localhost:9000)\n\nYou can test it out:\n\n```console\ncurl localhost:10000\ncurl localhost:10001\n```\n\nIf you have a running xDS server already, you can connect to that and set your proxy's `Node ID`:\n\n```console\n# localhost:9901 is the default value for `xds-server-url`.\nproxy --node-id my-proxy\n```\n\n```console\nproxy --node-id my-proxy --xds-server-url localhost:9902\n```\n\n\u003e Note: TLS configuration (and other channel and call credentials) will be added in the next release.\n\n### Using Go\n\n`proxy` is a Go project, hence can be installed using:\n\n```console\ngo install github.com/dio/proxy@latest\n```\n\nAlso, you can _go run_ it directly:\n\n```console\ngo run github.com/dio/proxy@latest --help\n```\n\n### Standalone xds-server\n\nYou can download standalone `xds-server` starts from [v0.0.1-rc2](https://github.com/dio/proxy/releases/tag/v0.0.1-rc2).\n\n\n```console\nxds-server --resources testdata/hello\n```\n\nUsing Go, you can do:\n\n```console\ngo run github.com/dio/proxy/xds-server@latest --help\n```\n\n## Embedding\n\nSee [`internal/proxy`](./internal/proxy/) for a sample usage of the public APIs\n([`config`](./config/), [`handler`](./handler/), and [`runner`](./runner/)).\n\n\n## License\n\nSee: [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdio%2Fproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdio%2Fproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdio%2Fproxy/lists"}