
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
It is a service created for Export processes. The project was written with https://github.com/nestjs/nest Framework.
By creating the docker-compose.yml file, it is possible to deploy the project with docker commands below. You can visit the https://hub.docker.com/r/brewery/export-service/tags to review the versions.
ymlversion: "3" services: serve: container_name: export-service image: brewery/export-service:latest expose: - ${PORT} restart: always ports: - "${PORT}:${PORT}" env_file: - .env
bash$ docker-compose up -d
| Variable Name | Description | Required | Default |
|---|---|---|---|
| ENVIRONMENT | Specifies the environment name. If the environment name is given as dev, Swagger operates actively. | NO | dev |
| CORS | Website endpoints can be defined for Cors safety. | NO | * |
| PORT | It is determined which port will be deploy. | NO | 3000 |
| GLOBAL_PREFIX | Allows to add additional pathname to the service end. | NO | - |
| BODY_SIZE_LIMIT | Specifies the maximum size of the data that will come from the body during the request. | NO | 5mb |
| API_KEY | It allows to add an api key control to the service for security during service use. | NO | - |
The parameters that can be sent in the body are in the table below.
| Key | Description | Required | Type | Defult |
|---|---|---|---|---|
| fileName | Created PDF file represents its name. | YES | string | - |
| type | Determines the type of transformation of the incoming data. | YES | enum(Html, Url) | - |
| html | HTML string to be converted to PDF is sent in format. | NO | string | - |
| url | The HTML response that comes with the request for GET is converted to PDF. | NO | string | - |
| format | Specifies the PDF page size. | YES | enum(Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6) | - |
| responseType | Specifies the type that the service will return. | YES | enum(Stream, Base64) | - |
REQ
json// POST {{ENDPOINT}}/{{GLOBAL_PREFIX}}/html-to-pdf { "url": "https://google.com.tr", "type": "url", "fileName": "hello-word", "format": "a3", "responseType": "stream" }
json// POST {{ENDPOINT}}/{{GLOBAL_PREFIX}}/html-to-pdf { "html": "<h1>Hello Word</h1>", "type": "html", "fileName": "hello-word", "format": "a2", "responseType": "stream" }
Export Service is MIT licensed.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务