
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Mattermost Push Proxy是Mattermost官方提供的推送代理服务,作为Mattermost服务器与移动推送服务(如Apple Push Notification service (APNs)、Firebase Cloud Messaging (FCM))之间的中间层,负责接收Mattermost服务器发送的通知请求,并转发至相应的移动推送平台,最终确保iOS和Android设备用户及时接收消息通知。
.p12或.pem格式)和/或FCM服务器密钥(Android推送)。1. 准备配置文件
创建config.json配置文件,示例如下(根据实际需求调整):
json{ "ListenAddress": ":8066", "ApplePushSettings": { "Type": "apns", "ApplePushCertPath": "/config/certs/apns-cert.pem", "ApplePushKeyPath": "/config/certs/apns-key.pem", "ApplePushTopic": "com.mattermost.Mattermost", "ApplePushEnvironment": "production", "ApplePushUseDevelopment": false }, "AndroidPushSettings": { "Type": "fcm", "AndroidAPIKey": "your-fcm-server-key", "AndroidEndpoint": "https://fcm.googleapis.com/fcm/send" }, "MattermostSettings": { "MattermostSiteURL": "https://your-mattermost-url.com", "AllowedUntrustedInternalConnections": "mattermost-server:8065" }, "LogSettings": { "EnableConsole": true, "ConsoleLevel": "info" } }
2. 启动容器
通过docker run命令启动服务,挂载配置文件和证书目录:
bashdocker run -d \ --name mattermost-push-proxy \ -p 8066:8066 \ -v $(pwd)/config.json:/config/config.json \ -v $(pwd)/certs:/config/certs \ # 挂载包含APNs证书的目录 --restart unless-stopped \ mattermost/push-proxy
创建docker-compose.yml文件,简化部署流程:
yamlversion: '3' services: push-proxy: image: mattermost/push-proxy container_name: mattermost-push-proxy ports: - "8066:8066" volumes: - ./config.json:/config/config.json - ./certs:/config/certs # 本地证书目录,包含APNs证书和密钥 environment: - TZ=UTC # 设置时区 restart: unless-stopped
启动服务:
bashdocker-compose up -d
| 配置项路径 | 说明 | 默认值 |
|---|---|---|
ListenAddress | 服务监听地址和端口 | :8066 |
ApplePushSettings.ApplePushCertPath | APNs证书文件路径(容器内路径) | - |
ApplePushSettings.ApplePushKeyPath | APNs密钥文件路径(容器内路径) | - |
ApplePushSettings.ApplePushTopic | iOS应用的Bundle ID | com.mattermost.Mattermost |
AndroidPushSettings.AndroidAPIKey | FCM服务器密钥(从Firebase控制台获取) | - |
AndroidPushSettings.AndroidEndpoint | FCM服务端点 | https://fcm.googleapis.com/fcm/send |
MattermostSettings.MattermostSiteURL | Mattermost服务器URL | - |
local。http://push-proxy:8066,容器间通信可使用服务名)。config.json的LogSettings中配置)。您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务