
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/thomaspoignant/go-feature-flag/blob/main/LICENSE
GO Feature Flag Relay Proxy使用https://github.com/thomaspoignant/go-feature-flag SDK获取特性标志配置文件,并暴露API以获取标志变体。
它允许多个服务器连接到单个配置文件。
这在需要为前端和后端使用相同特性标志配置文件时非常有用,通过标准协议实现语言无关。
有关GO Feature Flag Relay Proxy的更多信息,请访问https://github.com/thomaspoignant/go-feature-flag/tree/main/cmd/relayproxy%E3%80%82
此默认发行版是go-feature-flag-relay-proxy的官方发行版。
问题反馈地址:
https://github.com/thomaspoignant/go-feature-flag/issues/new?assignees=&labels=bug%2C+relay-proxy%2C+docker%2C+needs-triage&template=bug.md&title=(bug%20docker)%E3%80%82
源代码位于https://github.com/thomaspoignant/go-feature-flag/tree/main/cmd/relayproxy%E3%80%82
所有版本可在https://hub.docker.com/r/thomaspoignant/go-feature-flag-relay-proxy/tags%E6%9F%A5%E7%9C%8B%E3%80%82
发布说明详见https://github.com/thomaspoignant/go-feature-flag/releases%E3%80%82
go-feature-flag-relay-proxy 需要使用配置文件。
默认情况下,配置文件应位于容器的/goff目录中,文件名为goff-proxy.yaml。
服务默认使用的端口为1031。
shelldocker run \ -v $(pwd)/goff-proxy.yaml:/goff/goff-proxy.yaml \ thomaspoignant/go-feature-flag-relay-proxy:latest
以下是在本地运行go-feature-flag-relay-proxy的简单示例。
shell# 下载基础配置文件示例 curl https://raw.githubusercontent.com/thomaspoignant/go-feature-flag/main/cmd/relayproxy/testdata/dockerhub-example/goff-proxy.yaml -o goff-proxy.yaml # 启动容器 docker run \ -p 1031:1031 \ -v $(pwd)/goff-proxy.yaml:/goff/goff-proxy.yaml \ thomaspoignant/go-feature-flag-relay-proxy:latest # 调用API curl -X 'POST' \ 'http://localhost:1031/v1/feature/flag-only-for-admin/eval' -H 'accept: application/json' -H 'Content-Type: application/json' \ -d '{ "user": { "key": "contact@gofeatureflag.org", "anonymous": true, "custom": { "admin": true, "email": "contact@gofeatureflag.org" }}, "defaultValue": "false"}'
查看本镜像中包含软件的https://github.com/thomaspoignant/go-feature-flag/blob/main/LICENSE%E4%BF%A1%E6%81%AF%E3%80%82
本项目开放贡献,详见https://github.com/thomaspoignant/go-feature-flag/blob/main/CONTRIBUTING.md%E3%80%82
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务