{"id":19989832,"url":"https://github.com/ojdev/xray-grpc-nginx","last_synced_at":"2026-06-10T00:31:10.252Z","repository":{"id":78731277,"uuid":"562137178","full_name":"ojdev/xray-grpc-nginx","owner":"ojdev","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-07T05:49:05.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T21:52:49.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/ojdev.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":"2022-11-05T12:30:08.000Z","updated_at":"2022-12-07T05:12:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5442517-3659-4c3b-895c-b98b6acdbcb5","html_url":"https://github.com/ojdev/xray-grpc-nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ojdev/xray-grpc-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojdev%2Fxray-grpc-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojdev%2Fxray-grpc-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojdev%2Fxray-grpc-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojdev%2Fxray-grpc-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ojdev","download_url":"https://codeload.github.com/ojdev/xray-grpc-nginx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojdev%2Fxray-grpc-nginx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34132030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-13T04:50:30.742Z","updated_at":"2026-06-10T00:31:10.199Z","avatar_url":"https://github.com/ojdev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 第一步：申请证书\n\n去[https://dash.cloudflare.com/profile/api-tokens](https://dash.cloudflare.com/profile/api-tokens) 将 `Global API Key` 查到的值写入到 `cloudflare.ini`中的`dns_cloudflare_api_key`,并将用户名写到`dns_cloudflare_email`；\n\n修改`certbot.new.sh`文件，后面的域名改为服务的域名\n\n执行`bash certbot.new.sh`，选1回车等待证书申请。\n\n# 第二步：配置nginx\n\n修改 `xray-grpc-nginx/config/nginx/nginx/conf.d/grpc.conf`中证书域名的路径与`server_name`绑定的域名。\n\n修改 `location /photos`处的`photos`为你定义的`serviceName`\n\n# 第三步：配置xray\n\n修改`config/xray/VLESS-GRPC.json`中`\"serviceName\": \"自定义serviceName，与nginx中的配置相同例如: photos\"`为上一步中定义的`serviceName`，要保持一致。\n\n# 第四步：启动服务\n\n`docker-compose up -d`\n\n# 第五步：客户端连接\n\n![image](https://user-images.githubusercontent.com/2107833/206098484-3e1105ee-838f-4bd5-b160-d5628d819a38.png)\n\n# 其他\n\n## 更新服务\n\n`docker-compose pull`\n\n`docker-compose up -d`\n\n## 更新证书\n\n`bash certbot.renew.sh`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojdev%2Fxray-grpc-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fojdev%2Fxray-grpc-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojdev%2Fxray-grpc-nginx/lists"}