
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This repository is part of the commercial open-source project CZERTAINLY. You can find more information about the project at https://github.com/CZERTAINLY/CZERTAINLY repository, including the contribution guide.
Email Notification Provider Connector is the implementation of the following Function Groups and Kinds:
| Function Group | Kind |
|---|---|
Notification Provider | EMAIL |
Software ***graphy Provider implements ***graphic key management function based on the software keystore managed data. Therefore, it is not recommended to use this provider for the production environment, where you require higher protection of the ***graphic keys. The Software ***graphy Provider is intended for the development and testing purposes.
It is compatible with the Notification Provider interface. This connector provides the following features:
Email Notification Provider Connector requires the PostgreSQL database to store the data.
Email Notification Provider implements Notification Provider interfaces. To learn more about the interfaces and end points, refer to the https://github.com/CZERTAINLY/CZERTAINLY-Interfaces.
For more information, please refer to the [***]
Email Notification Provider Connector is provided as a Docker container. Use the czertainly/czertainly-email-notification-provider:tagname to pull the required image from the repository. It can be configured using the following environment variables:
| Variable | Description | Required | Default value |
|---|---|---|---|
JDBC_URL | JDBC URL for database access | N/A | |
JDBC_USERNAME | Username to access the database | N/A | |
JDBC_PASSWORD | Password to access the database | N/A | |
DB_SCHEMA | Database schema to use | emailnp | |
PORT | Port where the service is exposed | 8080 | |
JAVA_OPTS | Customize Java system properties for running application | N/A | |
SMTP_HOST | SMTP host | N/A | |
SMTP_PORT | SMTP port | 587 | |
SMTP_USERNAME | SMTP username | N/A | |
SMTP_PASSWORD | SMTP password | N/A | |
SMTP_AUTH | SMTP authentication | true | |
SMTP_TLS | SMTP TLS | true |
Configuring instance of this Email Notification Provider requires to provide the following attributes:
| Attribute | Description | Content Type |
|---|---|---|
| Sender email address | Email address from which the notification will be sent | STRING |
| Subject | Subject of the email that will be sent | STRING |
| Content Template | HTML template to be used to send information in email | CODEBLOCK |
Subject and Content Template attributes support variables that are replaced during notification processing. Variables are replaced with the data coming from the request for notification.
The varaibles are written in format ${variable}.
The following is an example of the Content Template with variables:
htlm<h3>Certificate status change!</h3> <p> The certificate identified as: <ul> <li>Subject: ${notificationData.subjectDn}</li> <li>Serial Number: ${notificationData.serialNumber}</li> <li>Issuer: ${notificationData.issuerDn}</li> </ul> </p> <button onclick="location.href='https://yourdomain.com/administrator/#/certificates/detail/${notificationData.certificateUuid}'" type="button"> Go To Certificate </button>
The variables will be replaced with values in the notification request, for example:
json{ "recipients": [ { "name": "John Doe", "email": "john.doe@example.com", "mappedAttributes": [ ] } ], "eventType": "certificate_status_changed", "resource": "certificates", "notificationData": { "oldStatus": "valid", "newStatus": "expiring", "subjectDn": "CN=test", "serialNumber": "4a25c46b33ee052d242023f5dfaaafd3694858a4", "issuerDn": "CN=issuer", "certificateUuid": "7de49ef9-8244-4e8f-95b8-82205ae0ad48" } }
Will parse the final notification Content Template to be:
html<h3>Certificate status change!</h3> <p> The certificate identified as: <ul> <li>Subject: CN=test</li> <li>Serial Number: 4a25c46b33ee052d242023f5dfaaafd3694858a4</li> <li>Issuer: CN=issuer</li> </ul> </p> <button onclick="location.href='https://localhost/administrator/#/certificates/detail/7de49ef9-8244-4e8f-95b8-82205ae0ad48'" type="button"> Go To Certificate </button>
To enable DEBUG logs for the implementation of the email notification provider, you need to set the following environment variable:
shellLOGGING_LEVEL_COM_CZERTAINLY=DEBUG
To enable DEBUG logs for the mail sending process and SMTP related information, you need to set the following environment variable:
shellSPRING_MAIL_PROPERTIES_MAIL_DEBUG=true
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务