{"id":13495552,"url":"https://github.com/v2fly/v2ray-examples","last_synced_at":"2026-02-14T05:31:53.867Z","repository":{"id":41396343,"uuid":"284284498","full_name":"v2fly/v2ray-examples","owner":"v2fly","description":"v2ray-core 的模板们","archived":false,"fork":false,"pushed_at":"2024-10-01T18:44:45.000Z","size":904,"stargazers_count":2519,"open_issues_count":19,"forks_count":753,"subscribers_count":65,"default_branch":"master","last_synced_at":"2026-02-11T21:35:51.780Z","etag":null,"topics":["config","configuration","v2fly","v2ray"],"latest_commit_sha":null,"homepage":"","language":"Mermaid","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/v2fly.png","metadata":{"files":{"readme":"README.ENG.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":"2020-08-01T15:17:03.000Z","updated_at":"2026-02-06T02:05:28.000Z","dependencies_parsed_at":"2024-01-16T09:02:15.674Z","dependency_job_id":"6fd1815f-be9a-445e-ac0b-934d766d8e50","html_url":"https://github.com/v2fly/v2ray-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/v2fly/v2ray-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Fv2ray-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Fv2ray-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Fv2ray-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Fv2ray-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v2fly","download_url":"https://codeload.github.com/v2fly/v2ray-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Fv2ray-examples/sbom","scorecard":{"id":914013,"data":{"date":"2025-08-11","repo":{"name":"github.com/v2fly/v2ray-examples","commit":"ff0566338be599d1652678c346a6a022cd87a5fa"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":3,"reason":"Found 10/29 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T20:19:18.032Z","repository_id":41396343,"created_at":"2025-08-24T20:19:18.032Z","updated_at":"2025-08-24T20:19:18.032Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29438405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T05:24:35.651Z","status":"ssl_error","status_checked_at":"2026-02-14T05:24:34.830Z","response_time":53,"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":["config","configuration","v2fly","v2ray"],"created_at":"2024-07-31T19:01:35.805Z","updated_at":"2026-02-14T05:31:53.850Z","avatar_url":"https://github.com/v2fly.png","language":"Mermaid","funding_links":[],"categories":["Mermaid"],"sub_categories":[],"readme":"#v2ray-examples\r\n\r\nHere are some V2Ray configuration examples for reference, the content keeps pace with the times, automation scripts, etc. Please do not pull the configuration from here.\r\n\r\nThanks to KiriKira, the author of vTemplate, Yuluowusheng and all the developers of Project V.\r\n\r\n## Contribution Guidelines\r\n\r\nYou are welcome to make a template for your own configuration and submit a PR.\r\n\r\nTemplates should adhere to the following standards:\r\n- use 4 spaces for indentation\r\n- Square (curly) brackets do not wrap\r\n- Unneeded fields should be removed\r\n- `log` section only leaves `loglevel`\r\n- For `outbounds`, client side should have `proxy` and `direct`, server side should have `direct` and `block`\r\n- Unless it is a template for a specific scenario, `geoip:private` should be routed to `direct` outbound (server configuration routes to `block` outbound)\r\n- DNS should not appear in config files unless it is a template for a specific scenario\r\n- `uuid` should be left blank and filled by the user.\r\n- `domainStrategy` in `routing` remains the default, which is `AsIs`.\r\n\r\n### Examples\r\n\r\n\u003c!-- Here yaml is only used for syntax highlighting, the actual content is json --\u003e\r\n```yaml\r\n{\r\n    \"log\": {\r\n        \"loglevel\": \"warning\"\r\n    },\r\n    \"routing\": {},\r\n    \"inbounds\": [],\r\n    \"outbounds\": []\r\n}\r\n```\r\n\r\n### client\r\n\r\n\u003c!-- Here yaml is only used for syntax highlighting, the actual content is json --\u003e\r\n```yaml\r\n{\r\n    \"log\": {\r\n        \"loglevel\": \"warning\"\r\n    },\r\n    \"routing\": {\r\n        \"domainStrategy\": \"AsIs\",\r\n        \"rules\": [\r\n            {\r\n                \"ip\": [\r\n                    \"geoip:private\"\r\n                ],\r\n                \"outboundTag\": \"direct\",\r\n                \"type\": \"field\"\r\n            }\r\n        ]\r\n    },\r\n    \"inbounds\": [\r\n        {\r\n            \"port\": 1080,\r\n            \"protocol\": \"socks\",\r\n            \"settings\": {\r\n                \"auth\": \"noauth\",\r\n                \"udp\": true\r\n            },\r\n            \"tag\": \"socks\"\r\n        }\r\n    ],\r\n    \"outbounds\": [\r\n        {\r\n            \"protocol\": \"vmess\",\r\n            \"settings\": {\r\n                \"vnext\": [\r\n                    {\r\n                        \"users\": [\r\n                            {\r\n                                \"id\": \"\"\r\n                            }\r\n                        ],\r\n                        \"port\": 1234,\r\n                        \"address\": \"Your_IP_Address\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"protocol\": \"freedom\",\r\n            \"tag\": \"direct\"\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\n### Server\r\n\r\n\u003c!-- Here yaml is only used for syntax highlighting, the actual content is json --\u003e\r\n```yaml\r\n{\r\n    \"log\": {\r\n        \"loglevel\": \"warning\"\r\n    },\r\n    \"routing\": {\r\n        \"domainStrategy\": \"AsIs\",\r\n        \"rules\": [\r\n            {\r\n                \"ip\": [\r\n                    \"geoip:private\"\r\n                ],\r\n                \"outboundTag\": \"blocked\",\r\n                \"type\": \"field\"\r\n            }\r\n        ]\r\n    },\r\n    \"inbounds\": [\r\n        {\r\n            \"port\": 1234,\r\n            \"protocol\": \"vmess\",\r\n            \"settings\": {\r\n                \"clients\": [\r\n                    {\r\n                        \"id\": \"\",\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ],\r\n    \"outbounds\": [\r\n        {\r\n            \"protocol\": \"freedom\"\r\n        },\r\n        {\r\n            \"protocol\": \"blackhole\",\r\n            \"tag\": \"blocked\"\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\n## How to choose the configuration that suits you:\r\n\r\n![](how-to-choose/how-to-choose-a-v2ray-plan-ENG.png)\r\n\r\nAdditional Notes:\u003cbr\u003e\r\nAlthough Websocket+TLS+Web may be regarded as the best solution at this stage, it is definitely not a solution recommended for novices to try as soon as they come up, let alone the only usage of V2Ray. \u003cbr\u003e\r\nAt the same time, you should understand that the network conditions in each region are different (mainly referring to the QoS level of different protocols), you can try all the configurations to find the most suitable one for you, try to ask as little as possible, and it is best not to ask \"why do I V2Ray so slow?\" Questions like that.\r\n\r\n## at last\r\n\r\nhave fun!\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2fly%2Fv2ray-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv2fly%2Fv2ray-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2fly%2Fv2ray-examples/lists"}