{"id":19387932,"url":"https://github.com/helloxz/goedge","last_synced_at":"2025-04-23T23:31:27.107Z","repository":{"id":37831625,"uuid":"417355288","full_name":"helloxz/goedge","owner":"helloxz","description":"goedge docker部署","archived":false,"fork":false,"pushed_at":"2022-05-15T11:24:30.000Z","size":14,"stargazers_count":21,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T22:22:20.844Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helloxz.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":"2021-10-15T03:18:25.000Z","updated_at":"2025-03-10T05:03:06.000Z","dependencies_parsed_at":"2022-08-19T11:21:37.528Z","dependency_job_id":null,"html_url":"https://github.com/helloxz/goedge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Fgoedge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Fgoedge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Fgoedge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Fgoedge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helloxz","download_url":"https://codeload.github.com/helloxz/goedge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250532003,"owners_count":21446098,"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-10T10:11:10.055Z","updated_at":"2025-04-23T23:31:26.875Z","avatar_url":"https://github.com/helloxz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goedge\nGoEdge是一款管理分布式边缘节点的开源工具软件，目的是让用户轻松地、低成本地创建CDN/WAF等应用。\n\n目前此项目仅支持运行`edge-node` ，请确保您已经安装`edge-admin`和`edge-api`，否则无法正常使用。\n\n\u003e 官方文档：[https://goedge.cn/docs/About.md](https://goedge.cn/docs/About.md)\n\n## Docker运行edge-node\n\n```bash\ndocker run -d --name=\"edge-node\" \\\n  -e ENDPOINTS='http://IP:8001' \\\n  -e CLUSTERID='xxx' \\\n  -e SECRET='xxx' \\\n  -v /data/edge-node/cache:/opt/cache \\\n  -v /data/edge-node/configs:/root/edge-node/configs \\\n  --network=host \\\n  --restart=always \\\n  helloz/edge-node:0.3.2\n```\n\n首先在goedge管理界面 - 边缘节点 - 找到你所在集群 - 集群节点 - 安装升级 - 自动注册，记录：`endpoints/clusterId/secret`，如下图：\n\n![](https://i.bmp.ovh/imgs/2021/10/57ec94f01752d7f9.png)\n\nDocker参数对应关系为：\n\n* `/data/edge-node/cache`：edge-node缓存路径，用于docker持久化存储\n* `/data/edge-node/configs`：edge-node配置文件夹路径，用于docker持久化存储\n\n* ENDPOINTS：对应`endpoints的URL地址\n* CLUSTERID：对应clusterId\n* SECRET：对应secret\n\n运行成功后继续回到goedge管理界面 - 边缘节点即可看到刚刚自动注册的节点，然后进行管理设置即可。\n\n\n\n## 注意\n\n防火墙放行对应端口，一般为：\n\n```bash\nfirewall-cmd --zone=public --add-port=80/tcp --permanent\nfirewall-cmd --zone=public --add-port=443/tcp --permanent\nfirewall-cmd --reload\n```\n\n\n\n## 其它说明\n\n推荐将Docker容器网络类型设置为`--network=host`可降低网络开销，提高性能。而且`edge-node`的监听是可以自行设置的，不是固定某个端口，使用`--network=host`灵活性也更好。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloxz%2Fgoedge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelloxz%2Fgoedge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloxz%2Fgoedge/lists"}