mirror of
https://github.com/certd/certd.git
synced 2026-04-25 21:27:32 +08:00
Compare commits
43 Commits
7b6b71cd4b
..
v2-dev
| Author | SHA1 | Date | |
|---|---|---|---|
| c28dfa8aca | |||
| 91141922ee | |||
| cc5154e04e | |||
| 77db5ecd12 | |||
| 7ac789c9c7 | |||
| 24dff05f64 | |||
| 64a350364d | |||
| 11b7cfe5cb | |||
| 71cfcad2a1 | |||
| ab4373b26e | |||
| d23ddc96ac | |||
| 147708e779 | |||
| dc969dd7ed | |||
| ef7d1d9327 | |||
| 2e6e9ed925 | |||
| 296dcab4c7 | |||
| f9e1c46c45 | |||
| 94fd5bd7ec | |||
| eb6ca96e85 | |||
| a2bbc7e272 | |||
| f075a991f0 | |||
| edeb817c39 | |||
| 23b4658672 | |||
| 5f95ee987f | |||
| cc73f156a7 | |||
| ee72d10718 | |||
| 831871d37f | |||
| 6072550ec1 | |||
| 112a565bf7 | |||
| 59e5c76286 | |||
| 21620ac6bd | |||
| d05129ec67 | |||
| 0998de4ae6 | |||
| 2bdf1832da | |||
| a846c4b66e | |||
| ee535895a3 | |||
| 1e549dfd43 | |||
| 6ee718a252 | |||
| 557e98c33f | |||
| 7a9eec88e8 | |||
| a7a4f66633 | |||
| a88d0a6ae1 | |||
| db87bc770e |
@@ -145,6 +145,20 @@ async doRequest(req: { action: string, data?: any }) {
|
|||||||
utils: typeof utils;
|
utils: typeof utils;
|
||||||
accessService: IAccessService;
|
accessService: IAccessService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this.ctx.http 只有request方法
|
||||||
|
// 方法参数
|
||||||
|
export type HttpRequestConfig<D = any> = {
|
||||||
|
skipSslVerify?: boolean;
|
||||||
|
skipCheckRes?: boolean;
|
||||||
|
logParams?: boolean;
|
||||||
|
logRes?: boolean;
|
||||||
|
logData?: boolean;
|
||||||
|
httpProxy?: string;
|
||||||
|
returnOriginRes?: boolean;
|
||||||
|
} & AxiosRequestConfig<D>;
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
const res = await this.ctx.http.request({
|
const res = await this.ctx.http.request({
|
||||||
url: "https://api.demo.cn/api/",
|
url: "https://api.demo.cn/api/",
|
||||||
|
|||||||
@@ -105,6 +105,28 @@ async removeRecord(options: RemoveRecordOptions<DemoRecord>): Promise<void> {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 6. 实现 getDomainListPage 方法
|
||||||
|
```typescript
|
||||||
|
/**
|
||||||
|
* 实现获取域名列表
|
||||||
|
*/
|
||||||
|
async getDomainListPage(req: PageSearch): Promise<PageRes<DomainRecord>> {
|
||||||
|
const pager = new Pager(req);
|
||||||
|
const res = await this.http.request({
|
||||||
|
// 请求接口获取域名列表
|
||||||
|
})
|
||||||
|
const list = res.Domains?.map(item => ({
|
||||||
|
id: item.Id,
|
||||||
|
domain: item.DomainName,
|
||||||
|
})) || []
|
||||||
|
|
||||||
|
return {
|
||||||
|
list,
|
||||||
|
total: res.Total,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### 6. 实例化插件
|
### 6. 实例化插件
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
@@ -204,11 +226,28 @@ export class DemoDnsProvider extends AbstractDnsProvider<DemoRecord> {
|
|||||||
|
|
||||||
this.logger.info('删除域名解析成功:', fullRecord, value);
|
this.logger.info('删除域名解析成功:', fullRecord, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实现获取域名列表
|
||||||
|
*/
|
||||||
|
async getDomainListPage(req: PageSearch): Promise<PageRes<DomainRecord>> {
|
||||||
|
const pager = new Pager(req);
|
||||||
|
const res = await this.http.request({
|
||||||
|
// 请求接口获取域名列表
|
||||||
|
})
|
||||||
|
const list = res.Domains?.map(item => ({
|
||||||
|
id: item.Id,
|
||||||
|
domain: item.DomainName,
|
||||||
|
})) || []
|
||||||
|
|
||||||
|
return {
|
||||||
|
list,
|
||||||
|
total: res.Total,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 实例化这个 provider,将其自动注册到系统中
|
// 实例化这个 provider,将其自动注册到系统中
|
||||||
if (isDev()) {
|
new DemoDnsProvider();
|
||||||
// 你的实现 要去掉这个 if,不然生产环境将不会显示
|
|
||||||
new DemoDnsProvider();
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
@@ -3,6 +3,25 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 修复创建流水线无法选择通知的bug ([a88d0a6](https://github.com/certd/certd/commit/a88d0a6ae15cb6170d0b36e21daf89f0dbd5f681))
|
||||||
|
* 修复流水线任务编辑页面复制粘贴按钮在夜间模式显示问题 ([1e549df](https://github.com/certd/certd/commit/1e549dfd431ed74e2bcdfce63e5f640c51603af3))
|
||||||
|
* 修复用户管理添加用户无法上传头像的bug ([557e98c](https://github.com/certd/certd/commit/557e98c33f5462167d8f6289f70dad68bb114a97))
|
||||||
|
* 修复自定义插件删除后没有反注册的bug ([df98463](https://github.com/certd/certd/commit/df9846332596d2afaba53e66d2897aa1c598f9c4))
|
||||||
|
* 修复spaceship创建record报错的bug ([70b46d4](https://github.com/certd/certd/commit/70b46d4a8f89cf8eded21ebb237e8c8ce6c40d30))
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* 1panel支持先上传证书再选择证书 ([7a9eec8](https://github.com/certd/certd/commit/7a9eec88e8eddf40dba055c072b5b2b0f67c1407))
|
||||||
|
* 部署到1panel面板支持mux模式 ([d05129e](https://github.com/certd/certd/commit/d05129ec67893b0b639003a4bca6878d128f56ad))
|
||||||
|
* 流水线修改编辑之后,增加未保存提示 ([21620ac](https://github.com/certd/certd/commit/21620ac6bdeb57e43509156a77037fc07c44282a))
|
||||||
|
* 修复检查全部某些情况下无效的bug,优化公共触发站点证书检查定时逻辑 ([ee53589](https://github.com/certd/certd/commit/ee535895a3166c6f9046963e28fa8f22f018b574))
|
||||||
|
* 增加域名管理 子域名检查提醒 ([2bdf183](https://github.com/certd/certd/commit/2bdf1832da73a3728f3ac415837bc26e70531cd6))
|
||||||
|
* 站点监控域名气泡增加端口显示 ([6ee718a](https://github.com/certd/certd/commit/6ee718a25265a9db2115343af9a1a01958f34b81))
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -95,7 +95,15 @@ https://certd.handfree.work/
|
|||||||
3. 【推荐】[1Panel面板方式部署](https://certd.docmirror.cn/guide/install/1panel/)
|
3. 【推荐】[1Panel面板方式部署](https://certd.docmirror.cn/guide/install/1panel/)
|
||||||
4. 【推荐】[雨云一键部署](https://app.rainyun.com/apps/rca/store/6646/?ref=NzExMDQ2) : 首充翻倍,每月仅需2.2元
|
4. 【推荐】[雨云一键部署](https://app.rainyun.com/apps/rca/store/6646/?ref=NzExMDQ2) : 首充翻倍,每月仅需2.2元
|
||||||
[<img src="https://rainyun-apps.cn-nb1.rains3.com/materials/deploy-on-rainyun-cn.svg">](https://app.rainyun.com/apps/rca/store/6646/?ref=NzExMDQ2)
|
[<img src="https://rainyun-apps.cn-nb1.rains3.com/materials/deploy-on-rainyun-cn.svg">](https://app.rainyun.com/apps/rca/store/6646/?ref=NzExMDQ2)
|
||||||
5. 【不推荐】[源码方式部署 ](https://certd.docmirror.cn/guide/install/source/)
|
|
||||||
|
5. 【推荐】[一键安装脚本](https://certd.docmirror.cn/guide/install/docker/)(自动安装 Docker,Certd):
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://gitee.com/certd/certd/raw/v2/docker/run/install.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
6. 【不推荐】[源码方式部署 ](https://certd.docmirror.cn/guide/install/source/)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### Docker镜像说明:
|
#### Docker镜像说明:
|
||||||
* 国内镜像地址:
|
* 国内镜像地址:
|
||||||
|
|||||||
@@ -0,0 +1,340 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CERTD_VERSION="${CERTD_VERSION:-latest}"
|
||||||
|
INSTALL_DIR="${INSTALL_DIR:-/opt/certd}"
|
||||||
|
COMPOSE_FILE_URL="https://gitee.com/certd/certd/raw/v2/docker/run/docker-compose.yaml"
|
||||||
|
COMPOSE_FILE="$INSTALL_DIR/docker-compose.yaml"
|
||||||
|
|
||||||
|
DOCKER_MIRROR="https://mirrors.aliyun.com"
|
||||||
|
|
||||||
|
RED='\033[0;31m'
|
||||||
|
GREEN='\033[0;32m'
|
||||||
|
YELLOW='\033[1;33m'
|
||||||
|
NC='\033[0m'
|
||||||
|
|
||||||
|
log_info() {
|
||||||
|
echo -e "${GREEN}[INFO]${NC} $1"
|
||||||
|
}
|
||||||
|
|
||||||
|
log_warn() {
|
||||||
|
echo -e "${YELLOW}[WARN]${NC} $1"
|
||||||
|
}
|
||||||
|
|
||||||
|
log_error() {
|
||||||
|
echo -e "${RED}[ERROR]${NC} $1"
|
||||||
|
}
|
||||||
|
|
||||||
|
check_command() {
|
||||||
|
command -v "$1" >/dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
|
get_local_ip() {
|
||||||
|
LOCAL_IP=$(ip route get 1.1.1.1 2>/dev/null | grep -oP 'src \K[^ ]+' | head -1)
|
||||||
|
if [ -z "$LOCAL_IP" ]; then
|
||||||
|
LOCAL_IP=$(hostname -I 2>/dev/null | awk '{print $1}')
|
||||||
|
fi
|
||||||
|
if [ -z "$LOCAL_IP" ]; then
|
||||||
|
LOCAL_IP="127.0.0.1"
|
||||||
|
fi
|
||||||
|
echo "$LOCAL_IP"
|
||||||
|
}
|
||||||
|
|
||||||
|
get_public_ip() {
|
||||||
|
PUBLIC_IP=$(curl -s --max-time 5 https://api.ipify.org 2>/dev/null)
|
||||||
|
if [ -z "$PUBLIC_IP" ]; then
|
||||||
|
PUBLIC_IP=$(curl -s --max-time 5 https://checkip.amazonaws.com 2>/dev/null)
|
||||||
|
fi
|
||||||
|
if [ -z "$PUBLIC_IP" ]; then
|
||||||
|
PUBLIC_IP=""
|
||||||
|
fi
|
||||||
|
echo "$PUBLIC_IP"
|
||||||
|
}
|
||||||
|
|
||||||
|
show_access_urls() {
|
||||||
|
LOCAL_IP=$(get_local_ip)
|
||||||
|
PUBLIC_IP=$(get_public_ip)
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "=========================================="
|
||||||
|
log_info "安装完成!"
|
||||||
|
echo "=========================================="
|
||||||
|
echo ""
|
||||||
|
echo "访问地址:"
|
||||||
|
if [ -n "$PUBLIC_IP" ]; then
|
||||||
|
echo -e " ${GREEN}外网访问:${NC} http://$PUBLIC_IP:7001"
|
||||||
|
fi
|
||||||
|
echo -e " ${GREEN}局域网:${NC} http://$LOCAL_IP:7001"
|
||||||
|
echo ""
|
||||||
|
echo "配置文件: $COMPOSE_FILE"
|
||||||
|
echo ""
|
||||||
|
echo "常用命令:"
|
||||||
|
echo " cd $INSTALL_DIR"
|
||||||
|
echo " docker compose logs -f # 查看日志"
|
||||||
|
echo " docker compose restart # 重启服务"
|
||||||
|
echo " docker compose down # 停止服务"
|
||||||
|
echo ""
|
||||||
|
}
|
||||||
|
|
||||||
|
detect_os() {
|
||||||
|
if [ -f /etc/os-release ]; then
|
||||||
|
. /etc/os-release
|
||||||
|
OS=$ID
|
||||||
|
VER=$VERSION_ID
|
||||||
|
elif [ -f /etc/centos-release ]; then
|
||||||
|
OS="centos"
|
||||||
|
elif [ -f /etc/redhat-release ]; then
|
||||||
|
OS="rhel"
|
||||||
|
else
|
||||||
|
OS="unknown"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
check_docker() {
|
||||||
|
if check_command docker; then
|
||||||
|
DOCKER_VERSION=$(docker --version 2>/dev/null | awk '{print $3}' | tr -d ',')
|
||||||
|
log_info "Docker 已安装: $DOCKER_VERSION"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
log_warn "Docker 未安装"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
check_docker_compose() {
|
||||||
|
if check_command docker-compose; then
|
||||||
|
COMPOSE_VERSION=$(docker-compose --version 2>/dev/null | awk '{print $3}' | tr -d ',')
|
||||||
|
log_info "Docker Compose 已安装: $COMPOSE_VERSION"
|
||||||
|
return 0
|
||||||
|
elif docker compose version >/dev/null 2>&1; then
|
||||||
|
log_info "Docker Compose (插件版) 已安装"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
log_warn "Docker Compose 未安装"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
install_docker_ubuntu() {
|
||||||
|
log_info "正在安装 Docker (Ubuntu/Debian)..."
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y ca-certificates curl gnupg lsb-release
|
||||||
|
|
||||||
|
mkdir -p /etc/apt/keyrings
|
||||||
|
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/${OS}/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg 2>/dev/null || \
|
||||||
|
curl -fsSL https://download.docker.com/linux/${OS}/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||||
|
|
||||||
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.aliyun.com/docker-ce/linux/${OS} $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
||||||
|
systemctl enable docker
|
||||||
|
systemctl start docker
|
||||||
|
|
||||||
|
log_info "Docker 安装完成"
|
||||||
|
}
|
||||||
|
|
||||||
|
install_docker_centos() {
|
||||||
|
log_info "正在安装 Docker (CentOS/RHEL)..."
|
||||||
|
yum install -y yum-utils
|
||||||
|
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
|
||||||
|
yum install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
||||||
|
systemctl enable docker
|
||||||
|
systemctl start docker
|
||||||
|
|
||||||
|
log_info "Docker 安装完成"
|
||||||
|
}
|
||||||
|
|
||||||
|
install_dockerrocky() {
|
||||||
|
log_info "正在安装 Docker (Rocky Linux/AlmaLinux)..."
|
||||||
|
dnf install -y yum-utils
|
||||||
|
dnf config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
|
||||||
|
dnf install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
||||||
|
systemctl enable docker
|
||||||
|
systemctl start docker
|
||||||
|
|
||||||
|
log_info "Docker 安装完成"
|
||||||
|
}
|
||||||
|
|
||||||
|
install_docker_debian() {
|
||||||
|
log_info "正在安装 Docker (Debian)..."
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y ca-certificates curl gnupg2
|
||||||
|
|
||||||
|
mkdir -p /etc/apt/keyrings
|
||||||
|
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/debian/gpg | gpg --armor -o /etc/apt/keyrings/docker.gpg 2>/dev/null || \
|
||||||
|
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --armor -o /etc/apt/keyrings/docker.gpg
|
||||||
|
|
||||||
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.aliyun.com/docker-ce/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
||||||
|
systemctl enable docker
|
||||||
|
systemctl start docker
|
||||||
|
|
||||||
|
log_info "Docker 安装完成"
|
||||||
|
}
|
||||||
|
|
||||||
|
install_docker() {
|
||||||
|
detect_os
|
||||||
|
log_info "检测到操作系统: $OS"
|
||||||
|
|
||||||
|
case $OS in
|
||||||
|
ubuntu)
|
||||||
|
install_docker_ubuntu
|
||||||
|
;;
|
||||||
|
debian)
|
||||||
|
install_docker_debian
|
||||||
|
;;
|
||||||
|
centos)
|
||||||
|
install_docker_centos
|
||||||
|
;;
|
||||||
|
rhel|rocky|almalinux)
|
||||||
|
install_dockerrocky
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
log_error "不支持的操作系统: $OS"
|
||||||
|
log_info "请手动安装 Docker"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
install_docker_compose_standalone() {
|
||||||
|
log_info "正在安装 Docker Compose (独立版本)..."
|
||||||
|
|
||||||
|
COMPOSE_URLS=(
|
||||||
|
"https://get.daocloud.io/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)"
|
||||||
|
"https://mirror.sjtu.edu.cn/github/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)"
|
||||||
|
"https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)"
|
||||||
|
)
|
||||||
|
|
||||||
|
for url in "${COMPOSE_URLS[@]}"; do
|
||||||
|
log_info "尝试从: $url"
|
||||||
|
if curl -L "$url" -o /usr/local/bin/docker-compose 2>/dev/null; then
|
||||||
|
chmod +x /usr/local/bin/docker-compose
|
||||||
|
log_info "Docker Compose 安装完成"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
log_warn "下载失败,尝试下一个源..."
|
||||||
|
done
|
||||||
|
|
||||||
|
log_error "Docker Compose 安装失败"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
install_docker_compose() {
|
||||||
|
if check_command docker && docker compose version >/dev/null 2>&1; then
|
||||||
|
log_info "Docker Compose 插件已可用"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_command docker-compose; then
|
||||||
|
log_info "Docker Compose 独立版本已安装"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
install_docker_compose_standalone
|
||||||
|
}
|
||||||
|
|
||||||
|
download_compose_file() {
|
||||||
|
log_info "正在下载 docker-compose.yaml..."
|
||||||
|
mkdir -p "$INSTALL_DIR"
|
||||||
|
|
||||||
|
if curl -fsSL "$COMPOSE_FILE_URL" -o "$COMPOSE_FILE.tmp"; then
|
||||||
|
mv "$COMPOSE_FILE.tmp" "$COMPOSE_FILE"
|
||||||
|
log_info "docker-compose.yaml 已下载到 $COMPOSE_FILE"
|
||||||
|
|
||||||
|
if [ "$CERTD_VERSION" != "latest" ]; then
|
||||||
|
sed -i "s|certd:latest|certd:$CERTD_VERSION|g" "$COMPOSE_FILE"
|
||||||
|
log_info "已修改镜像版本为: $CERTD_VERSION"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
log_error "下载失败,请检查网络连接"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
start_certd() {
|
||||||
|
log_info "正在启动 Certd 容器..."
|
||||||
|
cd "$INSTALL_DIR"
|
||||||
|
|
||||||
|
if docker compose -f "$COMPOSE_FILE" up -d 2>/dev/null; then
|
||||||
|
log_info "Certd 启动成功!"
|
||||||
|
elif docker-compose -f "$COMPOSE_FILE" up -d; then
|
||||||
|
log_info "Certd 启动成功!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
docker ps --filter "name=certd" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
|
||||||
|
}
|
||||||
|
|
||||||
|
show_usage() {
|
||||||
|
echo "用法: $0 [选项]"
|
||||||
|
echo ""
|
||||||
|
echo "选项:"
|
||||||
|
echo " -v, --version VERSION 指定 Certd 版本 (默认: latest)"
|
||||||
|
echo " -p, --path PATH 指定安装路径 (默认: /opt/certd)"
|
||||||
|
echo " -h, --help 显示帮助信息"
|
||||||
|
echo ""
|
||||||
|
echo "示例:"
|
||||||
|
echo " $0 # 使用默认配置安装"
|
||||||
|
echo " $0 -v 1.29.0 # 安装指定版本"
|
||||||
|
echo " $0 -p /data/certd # 安装到指定目录"
|
||||||
|
}
|
||||||
|
|
||||||
|
main() {
|
||||||
|
echo "=========================================="
|
||||||
|
echo " Certd 一键安装脚本"
|
||||||
|
echo "=========================================="
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
while [[ $# -gt 0 ]]; do
|
||||||
|
case $1 in
|
||||||
|
-v|--version)
|
||||||
|
CERTD_VERSION="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
-p|--path)
|
||||||
|
INSTALL_DIR="$2"
|
||||||
|
COMPOSE_FILE="$INSTALL_DIR/docker-compose.yaml"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
-h|--help)
|
||||||
|
show_usage
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
log_error "未知选项: $1"
|
||||||
|
show_usage
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
log_info "Certd 版本: $CERTD_VERSION"
|
||||||
|
log_info "安装路径: $INSTALL_DIR"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
DOCKER_INSTALLED=true
|
||||||
|
COMPOSE_INSTALLED=true
|
||||||
|
|
||||||
|
if ! check_docker; then
|
||||||
|
echo ""
|
||||||
|
log_info "正在安装 Docker..."
|
||||||
|
install_docker
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! check_docker_compose; then
|
||||||
|
echo ""
|
||||||
|
log_info "正在安装 Docker Compose..."
|
||||||
|
install_docker_compose
|
||||||
|
fi
|
||||||
|
|
||||||
|
download_compose_file
|
||||||
|
start_certd
|
||||||
|
|
||||||
|
show_access_urls
|
||||||
|
}
|
||||||
|
|
||||||
|
main "$@"
|
||||||
@@ -3,6 +3,25 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 修复创建流水线无法选择通知的bug ([a88d0a6](https://github.com/certd/certd/commit/a88d0a6ae15cb6170d0b36e21daf89f0dbd5f681))
|
||||||
|
* 修复流水线任务编辑页面复制粘贴按钮在夜间模式显示问题 ([1e549df](https://github.com/certd/certd/commit/1e549dfd431ed74e2bcdfce63e5f640c51603af3))
|
||||||
|
* 修复用户管理添加用户无法上传头像的bug ([557e98c](https://github.com/certd/certd/commit/557e98c33f5462167d8f6289f70dad68bb114a97))
|
||||||
|
* 修复自定义插件删除后没有反注册的bug ([df98463](https://github.com/certd/certd/commit/df9846332596d2afaba53e66d2897aa1c598f9c4))
|
||||||
|
* 修复spaceship创建record报错的bug ([70b46d4](https://github.com/certd/certd/commit/70b46d4a8f89cf8eded21ebb237e8c8ce6c40d30))
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* 1panel支持先上传证书再选择证书 ([7a9eec8](https://github.com/certd/certd/commit/7a9eec88e8eddf40dba055c072b5b2b0f67c1407))
|
||||||
|
* 部署到1panel面板支持mux模式 ([d05129e](https://github.com/certd/certd/commit/d05129ec67893b0b639003a4bca6878d128f56ad))
|
||||||
|
* 流水线修改编辑之后,增加未保存提示 ([21620ac](https://github.com/certd/certd/commit/21620ac6bdeb57e43509156a77037fc07c44282a))
|
||||||
|
* 修复检查全部某些情况下无效的bug,优化公共触发站点证书检查定时逻辑 ([ee53589](https://github.com/certd/certd/commit/ee535895a3166c6f9046963e28fa8f22f018b574))
|
||||||
|
* 增加域名管理 子域名检查提醒 ([2bdf183](https://github.com/certd/certd/commit/2bdf1832da73a3728f3ac415837bc26e70531cd6))
|
||||||
|
* 站点监控域名气泡增加端口显示 ([6ee718a](https://github.com/certd/certd/commit/6ee718a25265a9db2115343af9a1a01958f34b81))
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -2,7 +2,23 @@
|
|||||||
|
|
||||||
## 一、安装
|
## 一、安装
|
||||||
|
|
||||||
### 1. 环境准备
|
### 一键脚本安装(推荐)
|
||||||
|
|
||||||
|
如果您的服务器未安装 Docker,该脚本会自动为您安装 Docker 和 Docker Compose,并启动 Certd 容器。
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://gitee.com/certd/certd/raw/v2/docker/run/install.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
> 支持 Ubuntu、Debian、CentOS、Rocky Linux、AlmaLinux 等主流发行版。
|
||||||
|
> docker-compose文件目录:`/opt/certd` ,升级时需要先进入此目录
|
||||||
|
> 运行时数据默认保存路径:`/data/certd` ,可使用参数指定:`-p /data/certd`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### 手动安装
|
||||||
|
|
||||||
|
#### 1. 环境准备
|
||||||
|
|
||||||
1.1 准备一台云服务器
|
1.1 准备一台云服务器
|
||||||
|
|
||||||
@@ -19,9 +35,9 @@ https://docs.docker.com/engine/install/
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 随便创建一个目录
|
# 随便创建一个目录
|
||||||
mkdir certd
|
mkdir /opt/certd
|
||||||
# 进入目录
|
# 进入目录
|
||||||
cd certd
|
cd /opt/certd
|
||||||
# 下载docker-compose.yaml文件,或者手动下载放到certd目录下
|
# 下载docker-compose.yaml文件,或者手动下载放到certd目录下
|
||||||
wget https://gitee.com/certd/certd/raw/v2/docker/run/docker-compose.yaml
|
wget https://gitee.com/certd/certd/raw/v2/docker/run/docker-compose.yaml
|
||||||
|
|
||||||
@@ -54,12 +70,12 @@ https://your_server_ip:7002
|
|||||||
记得修改密码
|
记得修改密码
|
||||||
|
|
||||||
|
|
||||||
## 二、升级
|
## 二、升级Certd
|
||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
如果您是第一次升级certd版本,切记切记先备份一下数据
|
如果您是第一次升级certd版本,切记切记先备份一下数据
|
||||||
```
|
```
|
||||||
# docker-compose.yaml配置
|
# 查看/opt/certd/docker-compose.yaml配置
|
||||||
- /data/certd:/app/data # 请务必确保 /app/data 这个路径没有改动,固定写死
|
- /data/certd:/app/data # 请务必确保 /app/data 这个路径没有改动,固定写死
|
||||||
```
|
```
|
||||||
:::
|
:::
|
||||||
@@ -71,6 +87,7 @@ https://your_server_ip:7002
|
|||||||
|
|
||||||
### 如果使用`latest`版本
|
### 如果使用`latest`版本
|
||||||
```shell
|
```shell
|
||||||
|
cd /opt/certd
|
||||||
#重新拉取镜像
|
#重新拉取镜像
|
||||||
docker pull registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
docker pull registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
||||||
# 重新启动容器
|
# 重新启动容器
|
||||||
|
|||||||
@@ -36,45 +36,48 @@
|
|||||||
| 32.| **Gcore** | Gcore |
|
| 32.| **Gcore** | Gcore |
|
||||||
| 33.| **Github授权** | |
|
| 33.| **Github授权** | |
|
||||||
| 34.| **godaddy授权** | |
|
| 34.| **godaddy授权** | |
|
||||||
| 35.| **金山云授权** | |
|
| 35.| **HiPM DNSMgr** | HiPM DNSMgr API Token 授权 |
|
||||||
| 36.| **FTP授权** | |
|
| 36.| **金山云授权** | |
|
||||||
| 37.| **七牛OSS授权** | |
|
| 37.| **FTP授权** | |
|
||||||
| 38.| **腾讯云COS授权** | 腾讯云对象存储授权,包含地域和存储桶 |
|
| 38.| **七牛OSS授权** | |
|
||||||
| 39.| **s3/minio授权** | S3/minio oss授权 |
|
| 39.| **腾讯云COS授权** | 腾讯云对象存储授权,包含地域和存储桶 |
|
||||||
| 40.| **namesilo授权** | |
|
| 40.| **s3/minio授权** | S3/minio oss授权 |
|
||||||
| 41.| **Next Terminal 授权** | 用于访问 Next Terminal API 的授权配置 |
|
| 41.| **namesilo授权** | |
|
||||||
| 42.| **1panel授权** | 账号和密码 |
|
| 42.| **Next Terminal 授权** | 用于访问 Next Terminal API 的授权配置 |
|
||||||
| 43.| **支付宝** | |
|
| 43.| **Nginx Proxy Manager 授权** | 用于登录 Nginx Proxy Manager,并为代理主机证书部署提供授权。 |
|
||||||
| 44.| **白山云授权** | |
|
| 44.| **1panel授权** | 账号和密码 |
|
||||||
| 45.| **宝塔云WAF授权** | 用于连接和管理宝塔云WAF服务的授权配置 |
|
| 45.| **支付宝** | |
|
||||||
| 46.| **cdnfly授权** | |
|
| 46.| **白山云授权** | |
|
||||||
| 47.| **k8s授权** | |
|
| 47.| **宝塔云WAF授权** | 用于连接和管理宝塔云WAF服务的授权配置 |
|
||||||
| 48.| **括彩云cdn授权** | 括彩云CDN,每月免费30G,[注册即领](https://kuocaicdn.com/register?code=8mn536rrzfbf8) |
|
| 48.| **cdnfly授权** | |
|
||||||
| 49.| **LeCDN授权** | |
|
| 49.| **k8s授权** | |
|
||||||
| 50.| **lucky** | |
|
| 50.| **括彩云cdn授权** | 括彩云CDN,每月免费30G,[注册即领](https://kuocaicdn.com/register?code=8mn536rrzfbf8) |
|
||||||
| 51.| **猫云授权** | |
|
| 51.| **LeCDN授权** | |
|
||||||
| 52.| **plesk授权** | |
|
| 52.| **lucky** | |
|
||||||
| 53.| **长亭雷池授权** | |
|
| 53.| **猫云授权** | |
|
||||||
| 54.| **群晖登录授权** | |
|
| 54.| **plesk授权** | |
|
||||||
| 55.| **uniCloud** | unicloud授权 |
|
| 55.| **长亭雷池授权** | |
|
||||||
| 56.| **微信支付** | |
|
| 56.| **群晖登录授权** | |
|
||||||
| 57.| **易盾rcdn授权** | 易盾CDN,每月免费30G,[注册即领](https://rhcdn.yiduncdn.com/register?code=8mn536rrzfbf8) |
|
| 57.| **uniCloud** | unicloud授权 |
|
||||||
| 58.| **易发云短信** | sms.yfyidc.cn/ |
|
| 58.| **微信支付** | |
|
||||||
| 59.| **易盾DCDN授权** | https://user.yiduncdn.com |
|
| 59.| **易盾rcdn授权** | 易盾CDN,每月免费30G,[注册即领](https://rhcdn.yiduncdn.com/register?code=8mn536rrzfbf8) |
|
||||||
| 60.| **易支付** | |
|
| 60.| **易发云短信** | sms.yfyidc.cn/ |
|
||||||
| 61.| **proxmox** | |
|
| 61.| **易盾DCDN授权** | https://user.yiduncdn.com |
|
||||||
| 62.| **Spaceship.com 授权** | Spaceship.com API 授权插件 |
|
| 62.| **易支付** | |
|
||||||
| 63.| **UCloud授权** | 优刻得授权 |
|
| 63.| **proxmox** | |
|
||||||
| 64.| **又拍云** | |
|
| 64.| **Spaceship.com 授权** | Spaceship.com API 授权插件 |
|
||||||
| 65.| **网宿授权** | |
|
| 65.| **Technitium DNS Server** | Technitium DNS Server 自建DNS服务器授权 |
|
||||||
| 66.| **西部数码授权** | |
|
| 66.| **UCloud授权** | 优刻得授权 |
|
||||||
| 67.| **我爱云授权** | 我爱云CDN |
|
| 67.| **又拍云** | |
|
||||||
| 68.| **新网授权(代理方式)** | |
|
| 68.| **网宿授权** | |
|
||||||
| 69.| **新网授权** | |
|
| 69.| **西部数码授权** | |
|
||||||
| 70.| **新网互联授权** | 仅支持代理账号,ip需要加入白名单 |
|
| 70.| **我爱云授权** | 我爱云CDN |
|
||||||
| 71.| **Zenlayer授权** | Zenlayer授权 |
|
| 71.| **新网授权(代理方式)** | |
|
||||||
| 72.| **GoEdge授权** | |
|
| 72.| **新网授权** | |
|
||||||
| 73.| **雨云授权** | https://app.rainyun.com/ |
|
| 73.| **新网互联授权** | 仅支持代理账号,ip需要加入白名单 |
|
||||||
|
| 74.| **Zenlayer授权** | Zenlayer授权 |
|
||||||
|
| 75.| **GoEdge授权** | |
|
||||||
|
| 76.| **雨云授权** | https://app.rainyun.com/ |
|
||||||
|
|
||||||
<style module>
|
<style module>
|
||||||
table th:first-of-type {
|
table th:first-of-type {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# 任务插件
|
# 任务插件
|
||||||
共 `129` 款任务插件
|
共 `130` 款任务插件
|
||||||
## 1. 证书申请
|
## 1. 证书申请
|
||||||
|
|
||||||
| 序号 | 名称 | 说明 |
|
| 序号 | 名称 | 说明 |
|
||||||
@@ -58,25 +58,26 @@
|
|||||||
| 3.| **Dokploy-部署server证书** | 自动更新Dokploy server证书 |
|
| 3.| **Dokploy-部署server证书** | 自动更新Dokploy server证书 |
|
||||||
| 4.| **飞牛NAS-部署证书** | |
|
| 4.| **飞牛NAS-部署证书** | |
|
||||||
| 5.| **NextTerminal-更新证书** | 更新 Next Terminal 证书 |
|
| 5.| **NextTerminal-更新证书** | 更新 Next Terminal 证书 |
|
||||||
| 6.| **1Panel-部署面板证书** | 更新1Panel的面板证书 |
|
| 6.| **Nginx Proxy Manager-部署到主机** | 上传自定义证书到 Nginx Proxy Manager,并绑定到所选主机。 |
|
||||||
| 7.| **1Panel-更新站点证书** | 更新1Panel的站点证书 |
|
| 7.| **1Panel-部署面板证书** | 更新1Panel的面板证书 |
|
||||||
| 8.| **宝塔-删除过期证书** | 删除证书夹中过期证书 |
|
| 8.| **1Panel-更新站点证书** | 更新1Panel的站点证书 |
|
||||||
| 9.| **宝塔-WAF证书部署** | 部署宝塔云WAF/aaWAF |
|
| 9.| **宝塔-删除过期证书** | 删除证书夹中过期证书 |
|
||||||
| 10.| **宝塔-面板证书部署** | 部署宝塔面板本身的ssl证书 |
|
| 10.| **宝塔-WAF证书部署** | 部署宝塔云WAF/aaWAF |
|
||||||
| 11.| **宝塔win-网站证书部署** | 部署到Windows版宝塔管理的站点的ssl证书 |
|
| 11.| **宝塔-面板证书部署** | 部署宝塔面板本身的ssl证书 |
|
||||||
| 12.| **宝塔-网站证书部署** | 部署宝塔管理的站点的ssl证书,目前支持宝塔网站站点、docker站点等。本插件也支持aaPanel。 |
|
| 12.| **宝塔win-网站证书部署** | 部署到Windows版宝塔管理的站点的ssl证书 |
|
||||||
| 13.| **K8S-Apply自定义yaml** | apply自定义yaml到k8s |
|
| 13.| **宝塔-网站证书部署** | 部署宝塔管理的站点的ssl证书,目前支持宝塔网站站点、docker站点等。本插件也支持aaPanel。 |
|
||||||
| 14.| **K8S-Ingress 证书部署** | 部署证书到k8s的Ingress |
|
| 14.| **K8S-Apply自定义yaml** | apply自定义yaml到k8s |
|
||||||
| 15.| **K8S-部署证书到Secret** | 部署证书到k8s的secret |
|
| 15.| **K8S-Ingress 证书部署** | 部署证书到k8s的Ingress |
|
||||||
| 16.| **lucky-更新Lucky证书** | |
|
| 16.| **K8S-部署证书到Secret** | 部署证书到k8s的secret |
|
||||||
| 17.| **Plesk-部署Plesk网站证书** | |
|
| 17.| **lucky-更新Lucky证书** | |
|
||||||
| 18.| **Plesk-更新证书** | 不会创建新证书记录,直接更新旧的证书 |
|
| 18.| **Plesk-部署Plesk网站证书** | |
|
||||||
| 19.| **雷池-更新证书(支持控制台和防护应用)** | 更新长亭雷池WAF的证书,支持更新控制台和防护应用的证书。 |
|
| 19.| **Plesk-更新证书** | 不会创建新证书记录,直接更新旧的证书 |
|
||||||
| 20.| **群晖-部署证书到群晖面板** | Synology,支持6.x以上版本 |
|
| 20.| **雷池-更新证书(支持控制台和防护应用)** | 更新长亭雷池WAF的证书,支持更新控制台和防护应用的证书。 |
|
||||||
| 21.| **群晖-刷新OTP登录有效期** | 群晖登录状态可能30天失效,需要在失效之前登录一次,刷新有效期,您可以将其放在“部署到群晖面板”任务之后 |
|
| 21.| **群晖-部署证书到群晖面板** | Synology,支持6.x以上版本 |
|
||||||
| 22.| **uniCloud-部署到服务空间** | 部署到服务空间 |
|
| 22.| **群晖-刷新OTP登录有效期** | 群晖登录状态可能30天失效,需要在失效之前登录一次,刷新有效期,您可以将其放在“部署到群晖面板”任务之后 |
|
||||||
| 23.| **Proxmox-上传证书到Proxmox** | |
|
| 23.| **uniCloud-部署到服务空间** | 部署到服务空间 |
|
||||||
| 24.| **威联通-部署证书到威联通** | 部署证书到qnap |
|
| 24.| **Proxmox-上传证书到Proxmox** | |
|
||||||
|
| 25.| **威联通-部署证书到威联通** | 部署证书到qnap |
|
||||||
## 5. 阿里云
|
## 5. 阿里云
|
||||||
|
|
||||||
| 序号 | 名称 | 说明 |
|
| 序号 | 名称 | 说明 |
|
||||||
|
|||||||
@@ -13,17 +13,19 @@
|
|||||||
| 9.| **cloudflare** | cloudflare dns provider |
|
| 9.| **cloudflare** | cloudflare dns provider |
|
||||||
| 10.| **dns.la** | dns.la |
|
| 10.| **dns.la** | dns.la |
|
||||||
| 11.| **godaddy** | GoDaddy |
|
| 11.| **godaddy** | GoDaddy |
|
||||||
| 12.| **华为云** | 华为云DNS解析提供商 |
|
| 12.| **HiPM DNSMgr** | HiPM DNSMgr DNS 解析提供商 |
|
||||||
| 13.| **namesilo** | namesilo dns provider |
|
| 13.| **华为云** | 华为云DNS解析提供商 |
|
||||||
| 14.| **雨云** | 雨云DNS解析提供商 |
|
| 14.| **namesilo** | namesilo dns provider |
|
||||||
| 15.| **腾讯云** | 腾讯云域名DNS解析提供者 |
|
| 15.| **雨云** | 雨云DNS解析提供商 |
|
||||||
| 16.| **腾讯云EO DNS** | 腾讯云EO DNS解析提供者 |
|
| 16.| **Technitium DNS Server** | Technitium DNS Server 自建DNS服务器 |
|
||||||
| 17.| **西部数码** | west dns provider |
|
| 17.| **腾讯云** | 腾讯云域名DNS解析提供者 |
|
||||||
| 18.| **Dns提供商Demo** | dns provider示例 |
|
| 18.| **腾讯云EO DNS** | 腾讯云EO DNS解析提供者 |
|
||||||
| 19.| **彩虹DNS** | 彩虹DNS管理系统 |
|
| 19.| **西部数码** | west dns provider |
|
||||||
| 20.| **Spaceship** | Spaceship 域名解析 |
|
| 20.| **Dns提供商Demo** | dns provider示例 |
|
||||||
| 21.| **51dns** | 51DNS |
|
| 21.| **彩虹DNS** | 彩虹DNS管理系统 |
|
||||||
| 22.| **新网互联** | 新网互联 |
|
| 22.| **Spaceship** | Spaceship 域名解析 |
|
||||||
|
| 23.| **51dns** | 51DNS |
|
||||||
|
| 24.| **新网互联** | 新网互联 |
|
||||||
|
|
||||||
<style module>
|
<style module>
|
||||||
table th:first-of-type {
|
table th:first-of-type {
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 161 KiB |
@@ -26,16 +26,20 @@ Created an external account key
|
|||||||
[b64MacKey: xxxxxxxxxxxxxxxx
|
[b64MacKey: xxxxxxxxxxxxxxxx
|
||||||
keyId: xxxxxxxxxxxxx]
|
keyId: xxxxxxxxxxxxx]
|
||||||
```
|
```
|
||||||
|

|
||||||
|
|
||||||
3. 到Certd中,创建一条EAB授权记录,填写keyId(=kid) 和 b64MacKey 信息
|
3. 到Certd中,创建一条EAB授权记录,填写keyId(=kid) 和 b64MacKey 信息
|
||||||
注意:keyId没有`]`结尾,不要把`]`也复制了
|
注意:keyId没有`]`结尾,不要把`]`也复制了
|
||||||
|
|
||||||
注意:EAB授权使用过一次之后,会绑定邮箱,后续再次使用时,要使用相同的邮箱
|
注意:EAB授权使用过一次之后,会绑定邮箱,后续再次使用时,要使用相同的邮箱,所以邮箱切记不要修改
|
||||||
否则会报错 `Unknown external account binding (EAB) key. This may be due to the EAB key expiring which occurs 7 days after creation`
|
否则会报错 `Unknown external account binding (EAB) key. This may be due to the EAB key expiring which occurs 7 days after creation`
|
||||||
|
|
||||||
### 2.2 通过服务账号获取EAB
|
4. 创建证书流水线,选择证书提供商为google,选择EAB授权,运行流水线申请证书
|
||||||
|
|
||||||
此方式可以自动EAB,需要配置代理
|
|
||||||
|
### 2.2 通过google服务账号接口获取授权
|
||||||
|
|
||||||
|
此方式可以自动获取EAB,需要服务端配置代理
|
||||||
|
|
||||||
1. 创建服务账号
|
1. 创建服务账号
|
||||||
https://console.cloud.google.com/projectselector2/iam-admin/serviceaccounts/create?walkthrough_id=iam--create-service-account&hl=zh-cn#step_index=1
|
https://console.cloud.google.com/projectselector2/iam-admin/serviceaccounts/create?walkthrough_id=iam--create-service-account&hl=zh-cn#step_index=1
|
||||||
@@ -48,9 +52,7 @@ https://console.cloud.google.com/projectselector2/iam-admin/serviceaccounts/crea
|
|||||||
7. 点击`添加密钥`->`创建新密钥`->`JSON`,下载密钥文件
|
7. 点击`添加密钥`->`创建新密钥`->`JSON`,下载密钥文件
|
||||||
8. 将json文件内容粘贴到 certd中 Google服务授权输入框中
|
8. 将json文件内容粘贴到 certd中 Google服务授权输入框中
|
||||||
|
|
||||||
|
9. 创建证书流水线,选择证书提供商为google, 选择服务账号授权,运行流水线申请证书
|
||||||
|
|
||||||
## 3、 创建证书流水线
|
|
||||||
选择证书提供商为google, 选择EAB授权 或 服务账号授权
|
|
||||||
|
|
||||||
## 4、 其他就跟正常申请证书一样了
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,5 +9,5 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npmClient": "pnpm",
|
"npmClient": "pnpm",
|
||||||
"version": "1.39.9"
|
"version": "1.39.10"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/publishlab/node-acme-client/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/acme-client
|
||||||
|
|
||||||
## [1.39.9](https://github.com/publishlab/node-acme-client/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/publishlab/node-acme-client/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/acme-client
|
**Note:** Version bump only for package @certd/acme-client
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"description": "Simple and unopinionated ACME client",
|
"description": "Simple and unopinionated ACME client",
|
||||||
"private": false,
|
"private": false,
|
||||||
"author": "nmorsman",
|
"author": "nmorsman",
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"module": "scr/index.js",
|
"module": "scr/index.js",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
"types"
|
"types"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/basic": "^1.39.9",
|
"@certd/basic": "^1.39.10",
|
||||||
"@peculiar/x509": "^1.11.0",
|
"@peculiar/x509": "^1.11.0",
|
||||||
"asn1js": "^3.0.5",
|
"asn1js": "^3.0.5",
|
||||||
"axios": "^1.9.0",
|
"axios": "^1.9.0",
|
||||||
@@ -70,5 +70,5 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/publishlab/node-acme-client/issues"
|
"url": "https://github.com/publishlab/node-acme-client/issues"
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ const defaultOpts = {
|
|||||||
},
|
},
|
||||||
challengeRemoveFn: async () => {
|
challengeRemoveFn: async () => {
|
||||||
throw new Error("Missing challengeRemoveFn()");
|
throw new Error("Missing challengeRemoveFn()");
|
||||||
}
|
},
|
||||||
|
waitDnsDiffuseTime: 30,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -577,7 +577,7 @@ class AcmeClient {
|
|||||||
|
|
||||||
const verifyFn = async (abort) => {
|
const verifyFn = async (abort) => {
|
||||||
if (this.opts.signal && this.opts.signal.aborted) {
|
if (this.opts.signal && this.opts.signal.aborted) {
|
||||||
abort();
|
abort(true);
|
||||||
throw new CancelError('用户取消');
|
throw new CancelError('用户取消');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,15 +50,18 @@ class Backoff {
|
|||||||
|
|
||||||
async function retryPromise(fn, attempts, backoff, logger = log) {
|
async function retryPromise(fn, attempts, backoff, logger = log) {
|
||||||
let aborted = false;
|
let aborted = false;
|
||||||
|
let abortedFromUser = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const setAbort = () => { aborted = true; }
|
const setAbort = (fromUser = false) => { aborted = true; abortedFromUser = fromUser; }
|
||||||
const data = await fn(setAbort);
|
const data = await fn(setAbort);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
if (aborted){
|
if (aborted){
|
||||||
logger(`用户取消重试`);
|
if (abortedFromUser){
|
||||||
|
logger(`用户取消重试`);
|
||||||
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
if ( ((backoff.attempts + 1) >= attempts)) {
|
if ( ((backoff.attempts + 1) >= attempts)) {
|
||||||
@@ -249,7 +252,7 @@ async function resolveDomainBySoaRecord(recordName, logger = log) {
|
|||||||
|
|
||||||
async function getAuthoritativeDnsResolver(recordName, logger = log) {
|
async function getAuthoritativeDnsResolver(recordName, logger = log) {
|
||||||
logger(`获取域名${recordName}的权威NS服务器: `);
|
logger(`获取域名${recordName}的权威NS服务器: `);
|
||||||
const resolver = new dns.Resolver();
|
const resolver = new dns.Resolver({ timeout: 10000,maxTimeout: 60000 });
|
||||||
|
|
||||||
try {
|
try {
|
||||||
/* Resolve root domain by SOA */
|
/* Resolve root domain by SOA */
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ async function walkDnsChallengeRecord(recordName, resolver = dns,deep = 0) {
|
|||||||
try {
|
try {
|
||||||
log(`检查域名 ${recordName} 的TXT记录`);
|
log(`检查域名 ${recordName} 的TXT记录`);
|
||||||
const txtRecords = await resolver.resolveTxt(recordName);
|
const txtRecords = await resolver.resolveTxt(recordName);
|
||||||
|
|
||||||
if (txtRecords && txtRecords.length) {
|
if (txtRecords && txtRecords.length) {
|
||||||
log(`找到 ${txtRecords.length} 条 TXT记录( ${recordName})`);
|
log(`找到 ${txtRecords.length} 条 TXT记录( ${recordName})`);
|
||||||
log(`TXT records: ${JSON.stringify(txtRecords)}`);
|
log(`TXT records: ${JSON.stringify(txtRecords)}`);
|
||||||
|
|||||||
+1
@@ -68,6 +68,7 @@ export interface ClientAutoOptions {
|
|||||||
preferredChain?: string;
|
preferredChain?: string;
|
||||||
signal?: AbortSignal;
|
signal?: AbortSignal;
|
||||||
profile?:string;
|
profile?:string;
|
||||||
|
waitDnsDiffuseTime?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Client {
|
export class Client {
|
||||||
|
|||||||
@@ -3,6 +3,12 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* 流水线修改编辑之后,增加未保存提示 ([21620ac](https://github.com/certd/certd/commit/21620ac6bdeb57e43509156a77037fc07c44282a))
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
### Performance Improvements
|
### Performance Improvements
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
01:21
|
23:43
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/basic",
|
"name": "@certd/basic",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
@@ -47,5 +47,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export function createAxiosService({ logger }: { logger: ILogger }) {
|
|||||||
if (config.skipSslVerify || config.httpProxy) {
|
if (config.skipSslVerify || config.httpProxy) {
|
||||||
let rejectUnauthorized = true;
|
let rejectUnauthorized = true;
|
||||||
if (config.skipSslVerify) {
|
if (config.skipSslVerify) {
|
||||||
logger.info("跳过SSL验证");
|
logger.info("忽略接口请求的SSL校验");
|
||||||
rejectUnauthorized = false;
|
rejectUnauthorized = false;
|
||||||
}
|
}
|
||||||
const proxy: any = {};
|
const proxy: any = {};
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/pipeline
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
### Performance Improvements
|
### Performance Improvements
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/pipeline",
|
"name": "@certd/pipeline",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
@@ -18,8 +18,8 @@
|
|||||||
"compile": "tsc --skipLibCheck --watch"
|
"compile": "tsc --skipLibCheck --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/basic": "^1.39.9",
|
"@certd/basic": "^1.39.10",
|
||||||
"@certd/plus-core": "^1.39.9",
|
"@certd/plus-core": "^1.39.10",
|
||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"reflect-metadata": "^0.1.13"
|
"reflect-metadata": "^0.1.13"
|
||||||
@@ -45,5 +45,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,4 +65,8 @@ export abstract class BaseAccess implements IAccess {
|
|||||||
}
|
}
|
||||||
throw new Error(`action ${req.action} not found`);
|
throw new Error(`action ${req.action} not found`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
normalizeEndpoint(endpoint: string) {
|
||||||
|
return endpoint.replace(/\/$/, "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/lib-huawei
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/lib-huawei
|
**Note:** Version bump only for package @certd/lib-huawei
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/lib-huawei",
|
"name": "@certd/lib-huawei",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"main": "./dist/bundle.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/bundle.js",
|
"module": "./dist/bundle.js",
|
||||||
"types": "./dist/d/index.d.ts",
|
"types": "./dist/d/index.d.ts",
|
||||||
@@ -24,5 +24,5 @@
|
|||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/lib-iframe
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/lib-iframe
|
**Note:** Version bump only for package @certd/lib-iframe
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/lib-iframe",
|
"name": "@certd/lib-iframe",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
@@ -31,5 +31,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/jdcloud
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/jdcloud
|
**Note:** Version bump only for package @certd/jdcloud
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/jdcloud",
|
"name": "@certd/jdcloud",
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"description": "jdcloud openApi sdk",
|
"description": "jdcloud openApi sdk",
|
||||||
"main": "./dist/bundle.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/bundle.js",
|
"module": "./dist/bundle.js",
|
||||||
@@ -56,5 +56,5 @@
|
|||||||
"fetch"
|
"fetch"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/lib-k8s
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/lib-k8s
|
**Note:** Version bump only for package @certd/lib-k8s
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/lib-k8s",
|
"name": "@certd/lib-k8s",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
"compile": "tsc --skipLibCheck --watch"
|
"compile": "tsc --skipLibCheck --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/basic": "^1.39.9",
|
"@certd/basic": "^1.39.10",
|
||||||
"@kubernetes/client-node": "0.21.0"
|
"@kubernetes/client-node": "0.21.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -33,5 +33,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,12 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 修复自定义插件删除后没有反注册的bug ([df98463](https://github.com/certd/certd/commit/df9846332596d2afaba53e66d2897aa1c598f9c4))
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/lib-server
|
**Note:** Version bump only for package @certd/lib-server
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/lib-server",
|
"name": "@certd/lib-server",
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"description": "midway with flyway, sql upgrade way ",
|
"description": "midway with flyway, sql upgrade way ",
|
||||||
"private": false,
|
"private": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -28,11 +28,11 @@
|
|||||||
],
|
],
|
||||||
"license": "AGPL",
|
"license": "AGPL",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/acme-client": "^1.39.9",
|
"@certd/acme-client": "^1.39.10",
|
||||||
"@certd/basic": "^1.39.9",
|
"@certd/basic": "^1.39.10",
|
||||||
"@certd/pipeline": "^1.39.9",
|
"@certd/pipeline": "^1.39.10",
|
||||||
"@certd/plugin-lib": "^1.39.9",
|
"@certd/plugin-lib": "^1.39.10",
|
||||||
"@certd/plus-core": "^1.39.9",
|
"@certd/plus-core": "^1.39.10",
|
||||||
"@midwayjs/cache": "3.14.0",
|
"@midwayjs/cache": "3.14.0",
|
||||||
"@midwayjs/core": "3.20.11",
|
"@midwayjs/core": "3.20.11",
|
||||||
"@midwayjs/i18n": "3.20.13",
|
"@midwayjs/i18n": "3.20.13",
|
||||||
@@ -64,5 +64,5 @@
|
|||||||
"typeorm": "^0.3.11",
|
"typeorm": "^0.3.11",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ import { BaseSettings, SysInstallInfo, SysPrivateSettings, SysPublicSettings, Sy
|
|||||||
|
|
||||||
import { getAllSslProviderDomains, setSslProviderReverseProxies } from '@certd/acme-client';
|
import { getAllSslProviderDomains, setSslProviderReverseProxies } from '@certd/acme-client';
|
||||||
import { cache, logger, mergeUtils, setGlobalProxy } from '@certd/basic';
|
import { cache, logger, mergeUtils, setGlobalProxy } from '@certd/basic';
|
||||||
|
import { isPlus } from '@certd/plus-core';
|
||||||
import * as dns from 'node:dns';
|
import * as dns from 'node:dns';
|
||||||
import { BaseService, setAdminMode } from '../../../basic/index.js';
|
import { BaseService, setAdminMode } from '../../../basic/index.js';
|
||||||
import { executorQueue } from '../../basic/service/executor-queue.js';
|
import { executorQueue } from '../../basic/service/executor-queue.js';
|
||||||
import { isComm, isPlus } from '@certd/plus-core';
|
|
||||||
const { merge } = mergeUtils;
|
const { merge } = mergeUtils;
|
||||||
|
|
||||||
let lastSaveEnvVars = {};
|
let lastSaveEnvVars = {};
|
||||||
@@ -119,11 +119,11 @@ export class SysSettingsService extends BaseService<SysSettingsEntity> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async savePublicSettings(bean: SysPublicSettings) {
|
async savePublicSettings(bean: SysPublicSettings) {
|
||||||
if (isComm()) {
|
// if (isComm()) {
|
||||||
if (bean.adminMode === 'enterprise') {
|
// if (bean.adminMode === 'enterprise') {
|
||||||
throw new Error("商业版不支持使用企业管理模式")
|
// throw new Error("商业版不支持使用企业管理模式")
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
await this.saveSetting(bean);
|
await this.saveSetting(bean);
|
||||||
//让设置生效
|
//让设置生效
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/midway-flyway-js
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/midway-flyway-js
|
**Note:** Version bump only for package @certd/midway-flyway-js
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/midway-flyway-js",
|
"name": "@certd/midway-flyway-js",
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"description": "midway with flyway, sql upgrade way ",
|
"description": "midway with flyway, sql upgrade way ",
|
||||||
"private": false,
|
"private": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -46,5 +46,5 @@
|
|||||||
"typeorm": "^0.3.11",
|
"typeorm": "^0.3.11",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-cert
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-cert
|
**Note:** Version bump only for package @certd/plugin-cert
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-cert",
|
"name": "@certd/plugin-cert",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
@@ -17,10 +17,10 @@
|
|||||||
"compile": "tsc --skipLibCheck --watch"
|
"compile": "tsc --skipLibCheck --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/acme-client": "^1.39.9",
|
"@certd/acme-client": "^1.39.10",
|
||||||
"@certd/basic": "^1.39.9",
|
"@certd/basic": "^1.39.10",
|
||||||
"@certd/pipeline": "^1.39.9",
|
"@certd/pipeline": "^1.39.10",
|
||||||
"@certd/plugin-lib": "^1.39.9",
|
"@certd/plugin-lib": "^1.39.10",
|
||||||
"psl": "^1.9.0",
|
"psl": "^1.9.0",
|
||||||
"punycode.js": "^2.3.1"
|
"punycode.js": "^2.3.1"
|
||||||
},
|
},
|
||||||
@@ -38,5 +38,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,12 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* 1panel支持先上传证书再选择证书 ([7a9eec8](https://github.com/certd/certd/commit/7a9eec88e8eddf40dba055c072b5b2b0f67c1407))
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-lib
|
**Note:** Version bump only for package @certd/plugin-lib
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-lib",
|
"name": "@certd/plugin-lib",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
@@ -22,10 +22,10 @@
|
|||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@alicloud/tea-util": "^1.4.11",
|
"@alicloud/tea-util": "^1.4.11",
|
||||||
"@aws-sdk/client-s3": "^3.964.0",
|
"@aws-sdk/client-s3": "^3.964.0",
|
||||||
"@certd/acme-client": "^1.39.9",
|
"@certd/acme-client": "^1.39.10",
|
||||||
"@certd/basic": "^1.39.9",
|
"@certd/basic": "^1.39.10",
|
||||||
"@certd/pipeline": "^1.39.9",
|
"@certd/pipeline": "^1.39.10",
|
||||||
"@certd/plus-core": "^1.39.9",
|
"@certd/plus-core": "^1.39.10",
|
||||||
"@kubernetes/client-node": "0.21.0",
|
"@kubernetes/client-node": "0.21.0",
|
||||||
"ali-oss": "^6.22.0",
|
"ali-oss": "^6.22.0",
|
||||||
"basic-ftp": "^5.0.5",
|
"basic-ftp": "^5.0.5",
|
||||||
@@ -57,5 +57,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
|
"gitHead": "112a565bf74c50e16c27a2c0a716588f84f39789"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ import { ILogger } from "@certd/basic";
|
|||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { uniq } from "lodash-es";
|
import { uniq } from "lodash-es";
|
||||||
|
|
||||||
|
export interface ICertInfoGetter {
|
||||||
|
getByPipelineId: (pipelineId: number) => Promise<CertInfo>;
|
||||||
|
}
|
||||||
export type CertInfo = {
|
export type CertInfo = {
|
||||||
crt: string; //fullchain证书
|
crt: string; //fullchain证书
|
||||||
key: string; //私钥
|
key: string; //私钥
|
||||||
@@ -132,7 +135,12 @@ export class CertReader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static readCertDetail(crt: string) {
|
static readCertDetail(crt: string) {
|
||||||
const detail = crypto.readCertificateInfo(crt.toString());
|
let detail: CertificateInfo;
|
||||||
|
try {
|
||||||
|
detail = crypto.readCertificateInfo(crt.toString());
|
||||||
|
} catch (e) {
|
||||||
|
throw new Error("证书解析失败:" + e.message + "(请确定证书格式,是否与私钥搞反?)");
|
||||||
|
}
|
||||||
const effective = detail.notBefore;
|
const effective = detail.notBefore;
|
||||||
const expires = detail.notAfter;
|
const expires = detail.notAfter;
|
||||||
const fingerprints = CertReader.getFingerprintX509(crt);
|
const fingerprints = CertReader.getFingerprintX509(crt);
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
export const CertApplyPluginNames = [":cert:"];
|
export const CertApplyPluginNames = [":cert:"];
|
||||||
export const EVENT_CERT_APPLY_SUCCESS = "CertApply.success";
|
export const EVENT_CERT_APPLY_SUCCESS = "CertApply.success";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export * from "./convert.js";
|
export * from "./convert.js";
|
||||||
export * from "./cert-reader.js";
|
export * from "./cert-reader.js";
|
||||||
export * from "./consts.js";
|
export * from "./consts.js";
|
||||||
export * from "./dns-provider/index.js";
|
export * from "./dns-provider/index.js";
|
||||||
|
|||||||
@@ -44,6 +44,10 @@ export function createRemoteSelectInputDefine(opts?: {
|
|||||||
component?: any;
|
component?: any;
|
||||||
value?: any;
|
value?: any;
|
||||||
pageSize?: number;
|
pageSize?: number;
|
||||||
|
uploadCert?: {
|
||||||
|
title?: string;
|
||||||
|
columns?: Record<string, any>;
|
||||||
|
};
|
||||||
}) {
|
}) {
|
||||||
const title = opts?.title || "请选择";
|
const title = opts?.title || "请选择";
|
||||||
const certDomainsInputKey = opts?.certDomainsInputKey || "certDomains";
|
const certDomainsInputKey = opts?.certDomainsInputKey || "certDomains";
|
||||||
@@ -74,6 +78,7 @@ export function createRemoteSelectInputDefine(opts?: {
|
|||||||
multi,
|
multi,
|
||||||
pageSize: opts?.pageSize,
|
pageSize: opts?.pageSize,
|
||||||
watches: [certDomainsInputKey, accessIdInputKey, ...watches],
|
watches: [certDomainsInputKey, accessIdInputKey, ...watches],
|
||||||
|
uploadCert: opts?.uploadCert,
|
||||||
...opts.component,
|
...opts.component,
|
||||||
},
|
},
|
||||||
value: opts.value,
|
value: opts.value,
|
||||||
|
|||||||
@@ -3,6 +3,23 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 修复创建流水线无法选择通知的bug ([a88d0a6](https://github.com/certd/certd/commit/a88d0a6ae15cb6170d0b36e21daf89f0dbd5f681))
|
||||||
|
* 修复流水线任务编辑页面复制粘贴按钮在夜间模式显示问题 ([1e549df](https://github.com/certd/certd/commit/1e549dfd431ed74e2bcdfce63e5f640c51603af3))
|
||||||
|
* 修复用户管理添加用户无法上传头像的bug ([557e98c](https://github.com/certd/certd/commit/557e98c33f5462167d8f6289f70dad68bb114a97))
|
||||||
|
* 修复自定义插件删除后没有反注册的bug ([df98463](https://github.com/certd/certd/commit/df9846332596d2afaba53e66d2897aa1c598f9c4))
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* 1panel支持先上传证书再选择证书 ([7a9eec8](https://github.com/certd/certd/commit/7a9eec88e8eddf40dba055c072b5b2b0f67c1407))
|
||||||
|
* 流水线修改编辑之后,增加未保存提示 ([21620ac](https://github.com/certd/certd/commit/21620ac6bdeb57e43509156a77037fc07c44282a))
|
||||||
|
* 修复检查全部某些情况下无效的bug,优化公共触发站点证书检查定时逻辑 ([ee53589](https://github.com/certd/certd/commit/ee535895a3166c6f9046963e28fa8f22f018b574))
|
||||||
|
* 增加域名管理 子域名检查提醒 ([2bdf183](https://github.com/certd/certd/commit/2bdf1832da73a3728f3ac415837bc26e70531cd6))
|
||||||
|
* 站点监控域名气泡增加端口显示 ([6ee718a](https://github.com/certd/certd/commit/6ee718a25265a9db2115343af9a1a01958f34b81))
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/ui-client",
|
"name": "@certd/ui-client",
|
||||||
"version": "1.39.9",
|
"version": "1.39.10",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --open",
|
"dev": "vite --open",
|
||||||
@@ -106,8 +106,8 @@
|
|||||||
"zod-defaults": "^0.1.3"
|
"zod-defaults": "^0.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@certd/lib-iframe": "^1.39.9",
|
"@certd/lib-iframe": "^1.39.10",
|
||||||
"@certd/pipeline": "^1.39.9",
|
"@certd/pipeline": "^1.39.10",
|
||||||
"@rollup/plugin-commonjs": "^25.0.7",
|
"@rollup/plugin-commonjs": "^25.0.7",
|
||||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||||
"@types/chai": "^4.3.12",
|
"@types/chai": "^4.3.12",
|
||||||
|
|||||||
@@ -13,13 +13,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import parser from "cron-parser";
|
|
||||||
import { computed, ref } from "vue";
|
import { computed, ref } from "vue";
|
||||||
import dayjs from "dayjs";
|
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
|
import { getCronNextTimes } from "/@/components/cron-editor/utils";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
import { getCronNextTimes } from "/@/components/cron-editor/utils";
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "CronEditor",
|
name: "CronEditor",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-select :value="value" @update:value="onChange">
|
<a-select :value="value" :filter-option="true" @update:value="onChange">
|
||||||
<a-select-option v-for="item of options" :key="item.value" :value="item.value" :label="item.label">
|
<a-select-option v-for="item of options" :key="item.value" :value="item.value" :label="item.label">
|
||||||
<span class="flex-o">
|
<span class="flex-o">
|
||||||
<fs-icon :icon="item.icon" class="fs-16 color-blue mr-5" />
|
<fs-icon :icon="item.icon" class="fs-16 color-blue mr-5" />
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<icon-select class="dns-provider-selector" :value="modelValue" :options="options" @update:value="atChange"> </icon-select>
|
<icon-select class="dns-provider-selector" :value="modelValue" :options="options" :filter-option="true" @update:value="atChange"> </icon-select>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|||||||
+3
-4
@@ -2,7 +2,7 @@
|
|||||||
<div class="domains-verify-plan-editor" :class="{ fullscreen }">
|
<div class="domains-verify-plan-editor" :class="{ fullscreen }">
|
||||||
<div class="fullscreen-modal" @click="fullscreenExit"></div>
|
<div class="fullscreen-modal" @click="fullscreenExit"></div>
|
||||||
<div class="plan-wrapper">
|
<div class="plan-wrapper">
|
||||||
<div class="plan-box">
|
<div class="plan-box bg-white dark:bg-neutral-700">
|
||||||
<div class="fullscreen-button pointer flex-center" @click="fullscreen = !fullscreen">
|
<div class="fullscreen-button pointer flex-center" @click="fullscreen = !fullscreen">
|
||||||
<span v-if="!fullscreen" style="font-size: 10px" class="flex-center">
|
<span v-if="!fullscreen" style="font-size: 10px" class="flex-center">
|
||||||
这里可以放大
|
这里可以放大
|
||||||
@@ -273,7 +273,7 @@ watch(
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: rgba(74, 74, 74, 0.78);
|
// background-color: rgba(74, 74, 74, 0.78);
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -287,7 +287,6 @@ watch(
|
|||||||
.plan-box {
|
.plan-box {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
background-color: #fff;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -315,7 +314,7 @@ watch(
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
//table-layout: fixed;
|
//table-layout: fixed;
|
||||||
th {
|
th {
|
||||||
background-color: #f5f5f5;
|
// background-color: #f5f5f5;
|
||||||
border-top: 1px solid #e8e8e8;
|
border-top: 1px solid #e8e8e8;
|
||||||
border-left: 1px solid #e8e8e8;
|
border-left: 1px solid #e8e8e8;
|
||||||
border-bottom: 1px solid #e8e8e8;
|
border-bottom: 1px solid #e8e8e8;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export default {
|
|||||||
async function onCreate() {
|
async function onCreate() {
|
||||||
await pluginStore.init();
|
await pluginStore.init();
|
||||||
options.value = pluginStore.group.getPreStepOutputOptions({
|
options.value = pluginStore.group.getPreStepOutputOptions({
|
||||||
pipeline: pipeline.value,
|
pipeline: pipeline?.value,
|
||||||
currentStageIndex: currentStageIndex.value,
|
currentStageIndex: currentStageIndex.value,
|
||||||
currentTaskIndex: currentTaskIndex.value,
|
currentTaskIndex: currentTaskIndex.value,
|
||||||
currentStepIndex: currentStepIndex.value,
|
currentStepIndex: currentStepIndex.value,
|
||||||
|
|||||||
@@ -25,8 +25,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</a-select>
|
</a-select>
|
||||||
<div class="ml-5">
|
<div class="ml-5 flex flex-row no-wrap">
|
||||||
<fs-button :loading="loading" title="刷新选项" icon="ion:refresh-outline" @click="refreshOptions"></fs-button>
|
<fs-button :loading="loading" title="刷新选项" icon="ion:refresh-outline" @click="refreshOptions"></fs-button>
|
||||||
|
<UploadCert v-if="uploadCert" class="ml-5" v-bind="uploadCert" @submit="refreshOptions"></UploadCert>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="helper" :class="{ error: hasError }">
|
<div class="helper" :class="{ error: hasError }">
|
||||||
@@ -39,6 +40,8 @@ import { ComponentPropsType, doRequest } from "/@/components/plugins/lib";
|
|||||||
import { defineComponent, inject, ref, useAttrs, watch, Ref } from "vue";
|
import { defineComponent, inject, ref, useAttrs, watch, Ref } from "vue";
|
||||||
import { PluginDefine } from "@certd/pipeline";
|
import { PluginDefine } from "@certd/pipeline";
|
||||||
import { getInputFromForm } from "./utils";
|
import { getInputFromForm } from "./utils";
|
||||||
|
import UploadCert from "./upload-cert.vue";
|
||||||
|
import { UploadCertProps } from "./types";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "RemoteSelect",
|
name: "RemoteSelect",
|
||||||
@@ -65,9 +68,10 @@ const props = defineProps<
|
|||||||
pager?: boolean;
|
pager?: boolean;
|
||||||
multi?: boolean;
|
multi?: boolean;
|
||||||
pageSize?: number;
|
pageSize?: number;
|
||||||
|
uploadCert?: UploadCertProps;
|
||||||
} & ComponentPropsType
|
} & ComponentPropsType
|
||||||
>();
|
>();
|
||||||
|
debugger;
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
"update:value": any;
|
"update:value": any;
|
||||||
}>();
|
}>();
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
export interface UploadCertProps {
|
||||||
|
title?: string;
|
||||||
|
columns?: Record<string, any>;
|
||||||
|
button?: any;
|
||||||
|
}
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
<template>
|
||||||
|
<div class="upload-cert">
|
||||||
|
<fs-button v-model:loading="loading" type="primary" text="上传" v-bind="props.button" @click="openUploadCertDialog"></fs-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { message } from "ant-design-vue";
|
||||||
|
import { useFormDialog } from "../../../use/use-dialog";
|
||||||
|
import { computed, inject, ref } from "vue";
|
||||||
|
import { doRequest } from "../lib";
|
||||||
|
import { getInputFromForm } from "./utils";
|
||||||
|
import { UploadCertProps } from "./types";
|
||||||
|
import { merge } from "lodash-es";
|
||||||
|
|
||||||
|
const props = defineProps<UploadCertProps>();
|
||||||
|
const loading = ref(false);
|
||||||
|
|
||||||
|
const emit = defineEmits(["submit"]);
|
||||||
|
const { openFormDialog } = useFormDialog();
|
||||||
|
const pipeline = inject("pipeline", null);
|
||||||
|
|
||||||
|
const getCurrentPluginDefine: any = inject("getCurrentPluginDefine", () => {
|
||||||
|
return {};
|
||||||
|
});
|
||||||
|
const getScope: any = inject("get:scope", () => {
|
||||||
|
return {};
|
||||||
|
});
|
||||||
|
const getPluginType: any = inject("get:plugin:type", () => {
|
||||||
|
return "plugin";
|
||||||
|
});
|
||||||
|
const title = computed(() => props.title || "上传证书");
|
||||||
|
function openUploadCertDialog() {
|
||||||
|
const columns = merge(
|
||||||
|
{
|
||||||
|
certName: {
|
||||||
|
title: "证书名称",
|
||||||
|
form: {
|
||||||
|
component: {
|
||||||
|
name: "a-input",
|
||||||
|
vModel: "value",
|
||||||
|
},
|
||||||
|
helper: "上传后证书显示名称",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
props.columns
|
||||||
|
);
|
||||||
|
openFormDialog({
|
||||||
|
title: title.value,
|
||||||
|
columns: {
|
||||||
|
certName: {
|
||||||
|
title: "证书名称",
|
||||||
|
form: {
|
||||||
|
component: {
|
||||||
|
name: "a-input",
|
||||||
|
vModel: "value",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
...props.columns,
|
||||||
|
},
|
||||||
|
onSubmit: async (form: any) => {
|
||||||
|
const pluginType = getPluginType();
|
||||||
|
const scope = getScope();
|
||||||
|
const { input, record } = getInputFromForm(scope.form, pluginType);
|
||||||
|
loading.value = true;
|
||||||
|
try {
|
||||||
|
const res = await doRequest(
|
||||||
|
{
|
||||||
|
type: pluginType,
|
||||||
|
typeName: scope.form.type,
|
||||||
|
action: "onUploadCert",
|
||||||
|
input,
|
||||||
|
record,
|
||||||
|
data: {
|
||||||
|
pipelineId: pipeline?.value?.id,
|
||||||
|
...form,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// onError(err: any) {
|
||||||
|
// message.error(err.message);
|
||||||
|
// },
|
||||||
|
showErrorNotify: true,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
message.success("上传成功");
|
||||||
|
emit("submit");
|
||||||
|
} finally {
|
||||||
|
loading.value = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="less">
|
||||||
|
.upload-cert {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<div class="step-item overflow-hidden">
|
<div class="step-item overflow-hidden">
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<h3 class="title">{{ number }} {{ currentStepItem.title }}</h3>
|
<h3 class="title font-bold">{{ number }} {{ currentStepItem.title }}</h3>
|
||||||
<div class="description mt-5">
|
<div class="description mt-5">
|
||||||
<div v-for="(desc, index) of currentStepItem.descriptions" :key="index">{{ desc }}</div>
|
<div v-for="(desc, index) of currentStepItem.descriptions" :key="index">{{ desc }}</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -247,6 +247,7 @@ function previewMask() {
|
|||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.tutorial-steps {
|
.tutorial-steps {
|
||||||
|
display: flex;
|
||||||
.step-item {
|
.step-item {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ function openUpgrade() {
|
|||||||
class: "vip-modal",
|
class: "vip-modal",
|
||||||
maskClosable: true,
|
maskClosable: true,
|
||||||
okText: t("vip.close"),
|
okText: t("vip.close"),
|
||||||
width: 1100,
|
width: 1180,
|
||||||
content: () => {
|
content: () => {
|
||||||
return <VipModalContent placeholder={placeholder} isPlus={isPlus} productInfo={productInfo} goBuyPlusPage={goBuyPlusPage} goBuyCommPage={goBuyCommPage} openStarModal={openStarModal} modalRef={modalRef} />;
|
return <VipModalContent placeholder={placeholder} isPlus={isPlus} productInfo={productInfo} goBuyPlusPage={goBuyPlusPage} goBuyCommPage={goBuyCommPage} openStarModal={openStarModal} modalRef={modalRef} />;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -65,6 +65,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="get-show">
|
<div class="get-show">
|
||||||
<template v-if="item.type === 'plus'">
|
<template v-if="item.type === 'plus'">
|
||||||
|
<span v-if="todayOrderCount.showVipTotal" class="mr-5">
|
||||||
|
已有
|
||||||
|
<span class="color-red"> {{ todayOrderCount.vipTotal }}</span>
|
||||||
|
位伙伴支持
|
||||||
|
</span>
|
||||||
<a-tooltip :title="t('vip.afdian_support_vip')">
|
<a-tooltip :title="t('vip.afdian_support_vip')">
|
||||||
<a-button size="small" type="primary" @click="goBuyPlusPage">
|
<a-button size="small" type="primary" @click="goBuyPlusPage">
|
||||||
{{ t("vip.get_after_support") }}
|
{{ t("vip.get_after_support") }}
|
||||||
@@ -260,12 +265,16 @@ const todayOrderCount = computed(() => {
|
|||||||
const lastStage = countInfo?.stages?.[countInfo?.stages?.length - 1] || {};
|
const lastStage = countInfo?.stages?.[countInfo?.stages?.length - 1] || {};
|
||||||
lastStage.orderCount = orderCount;
|
lastStage.orderCount = orderCount;
|
||||||
|
|
||||||
|
const vipTotal = countInfo?.vipTotal || 0;
|
||||||
|
const showVipTotal = countInfo?.showVipTotal || false;
|
||||||
|
const userTotal = countInfo?.userTotal || 0;
|
||||||
const stages: any = [];
|
const stages: any = [];
|
||||||
stages.push({
|
stages.push({
|
||||||
title: countInfo.title,
|
title: countInfo.title,
|
||||||
vipTotal: countInfo?.vipTotal || 0,
|
vipTotal: countInfo?.vipTotal || 0,
|
||||||
orderCount: orderCount,
|
orderCount: orderCount,
|
||||||
bg: lastStage.bg,
|
bg: lastStage.bg,
|
||||||
|
showVipTotal: showVipTotal,
|
||||||
});
|
});
|
||||||
if (lastStage.orderCount > 0) {
|
if (lastStage.orderCount > 0) {
|
||||||
stages.push(lastStage);
|
stages.push(lastStage);
|
||||||
@@ -273,6 +282,9 @@ const todayOrderCount = computed(() => {
|
|||||||
return {
|
return {
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
stages: stages,
|
stages: stages,
|
||||||
|
showVipTotal: showVipTotal,
|
||||||
|
vipTotal: vipTotal,
|
||||||
|
userTotal: userTotal,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export default {
|
|||||||
click_to_get_7_day_trial: "Click to get 7-day trial",
|
click_to_get_7_day_trial: "Click to get 7-day trial",
|
||||||
years: "years",
|
years: "years",
|
||||||
afdian_support_vip: "Obtain the permanent professional version coupon",
|
afdian_support_vip: "Obtain the permanent professional version coupon",
|
||||||
get_after_support: "Get after sponsoring",
|
get_after_support: "sponsoring",
|
||||||
|
|
||||||
business_edition: "Business Edition",
|
business_edition: "Business Edition",
|
||||||
commercial_license: "Commercial license, allowed for external operation",
|
commercial_license: "Commercial license, allowed for external operation",
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export default {
|
|||||||
activateCertDesc2: "让证书生效",
|
activateCertDesc2: "让证书生效",
|
||||||
taskSuccessTitle: "部署任务添加成功",
|
taskSuccessTitle: "部署任务添加成功",
|
||||||
taskSuccessDesc: "现在可以运行",
|
taskSuccessDesc: "现在可以运行",
|
||||||
pluginsTitle: "本系统提供茫茫多的部署插件",
|
pluginsTitle: "本系统提供海量的部署插件",
|
||||||
pluginsDesc: "您可以根据自身需求将证书部署到各种应用和平台",
|
pluginsDesc: "您可以根据自身需求将证书部署到各种应用和平台",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ export const useSettingStore = defineStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
openBindUrlModal() {
|
openBindUrlModal(opts: { closable?: boolean } = { closable: false }) {
|
||||||
const event: any = { ModalRef: null };
|
const event: any = { ModalRef: null };
|
||||||
mitter.emit("getModal", event);
|
mitter.emit("getModal", event);
|
||||||
const Modal = event.ModalRef;
|
const Modal = event.ModalRef;
|
||||||
@@ -302,10 +302,12 @@ export const useSettingStore = defineStore({
|
|||||||
modalRef.destroy();
|
modalRef.destroy();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
const { closable = false } = opts;
|
||||||
const modalRef: any = Modal.warning({
|
const modalRef: any = Modal.warning({
|
||||||
title: "URL地址未绑定,是否绑定此地址?",
|
title: "URL地址未绑定,是否绑定此地址?",
|
||||||
width: 500,
|
width: 500,
|
||||||
keyboard: false,
|
keyboard: false,
|
||||||
|
closable,
|
||||||
content: () => {
|
content: () => {
|
||||||
return (
|
return (
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
@@ -338,10 +340,10 @@ export const useSettingStore = defineStore({
|
|||||||
danger: true,
|
danger: true,
|
||||||
},
|
},
|
||||||
okText: "不,回到原来的地址",
|
okText: "不,回到原来的地址",
|
||||||
cancelText: "不,回到原来的地址",
|
// cancelText: "不,回到原来的地址",
|
||||||
onCancel: () => {
|
// onOk: () => {
|
||||||
window.location.href = bindUrl;
|
// window.location.href = bindUrl;
|
||||||
},
|
// },
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async loadProductInfo() {
|
async loadProductInfo() {
|
||||||
|
|||||||
@@ -73,13 +73,11 @@
|
|||||||
margin: 20px;
|
margin: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fs-crud-table {
|
// .fs-crud-table {
|
||||||
.ant-table-body {
|
// .ant-table-body {
|
||||||
height: 60vh;
|
// height:60vh;
|
||||||
table {
|
// }
|
||||||
}
|
// }
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
body a {
|
body a {
|
||||||
color: #1890ff;
|
color: #1890ff;
|
||||||
@@ -130,4 +128,17 @@ button.ant-btn.ant-btn-default.isPlus{
|
|||||||
background-color: rgba(50, 54, 57, 0.04);
|
background-color: rgba(50, 54, 57, 0.04);
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dark{
|
||||||
|
button.ant-btn.ant-btn-default.isPlus{
|
||||||
|
color: #c5913f;
|
||||||
|
border: 1px solid #c5913f;
|
||||||
|
|
||||||
|
&:disabled {
|
||||||
|
border-color: hsl(0, 0%, 31%);
|
||||||
|
color: rgba(233, 233, 233, 0.25);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ const userStore = useUserStore();
|
|||||||
const projectStore = useProjectStore();
|
const projectStore = useProjectStore();
|
||||||
async function emitValue(value: any) {
|
async function emitValue(value: any) {
|
||||||
// target.value = optionsDictRef.dataMap[value];
|
// target.value = optionsDictRef.dataMap[value];
|
||||||
if (pipeline.value) {
|
if (pipeline?.value) {
|
||||||
const userId = userStore.userInfo.id;
|
const userId = userStore.userInfo.id;
|
||||||
const isEnterprice = projectStore.isEnterprise;
|
const isEnterprice = projectStore.isEnterprise;
|
||||||
if (isEnterprice) {
|
if (isEnterprice) {
|
||||||
|
|||||||
@@ -99,3 +99,11 @@ export async function SyncExpirationStatus() {
|
|||||||
method: "post",
|
method: "post",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function IsSubdomain(body: any) {
|
||||||
|
return await request({
|
||||||
|
url: apiPrefix + "/isSubdomain",
|
||||||
|
method: "post",
|
||||||
|
data: body,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||||||
});
|
});
|
||||||
|
|
||||||
const openDomainImportManageDialog = useDomainImportManage();
|
const openDomainImportManageDialog = useDomainImportManage();
|
||||||
|
|
||||||
|
const subdomainConfirmed = ref(false);
|
||||||
return {
|
return {
|
||||||
crudOptions: {
|
crudOptions: {
|
||||||
settings: {
|
settings: {
|
||||||
@@ -85,10 +87,29 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||||||
fixed: "right",
|
fixed: "right",
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
beforeSubmit({ form }) {
|
async beforeSubmit({ form }) {
|
||||||
if (form.challengeType === "cname") {
|
if (form.challengeType === "cname") {
|
||||||
throw new Error("CNAME方式请前往CNAME记录页面进行管理");
|
throw new Error("CNAME方式请前往CNAME记录页面进行管理");
|
||||||
}
|
}
|
||||||
|
if (form.challengeType === "dns") {
|
||||||
|
const isSubdomain = await api.IsSubdomain({ domain: form.domain });
|
||||||
|
if (isSubdomain && !subdomainConfirmed.value) {
|
||||||
|
Modal.confirm({
|
||||||
|
title: "子域名确认",
|
||||||
|
content: `检测到${form.domain}为子域名,只有托管子域名和免费二级子域名才需要在此处维护,否则会导致申请证书失败,请确认是否继续?`,
|
||||||
|
okText: "确认",
|
||||||
|
okType: "danger",
|
||||||
|
onOk: () => {
|
||||||
|
subdomainConfirmed.value = true;
|
||||||
|
crudExpose.getFormWrapperRef().submit();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
afterSubmit({ form }) {
|
||||||
|
subdomainConfirmed.value = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
actionbar: {
|
actionbar: {
|
||||||
@@ -163,6 +184,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
required: true,
|
required: true,
|
||||||
|
helper: "注意:DNS校验方式下,子域名不需要在此处维护,否则会影响证书申请(子域名托管或免费二级域名除外)",
|
||||||
},
|
},
|
||||||
editForm: {
|
editForm: {
|
||||||
component: {
|
component: {
|
||||||
|
|||||||
@@ -346,12 +346,13 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||||||
width: 230,
|
width: 230,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
cellRender({ value, row }) {
|
cellRender({ value, row }) {
|
||||||
const url = `https://${value}:${row.httpsPort}`;
|
const domainPort = value + ":" + row.httpsPort;
|
||||||
|
const url = `https://${domainPort}`;
|
||||||
return (
|
return (
|
||||||
<a-tooltip title={value} placement="left">
|
<a-tooltip title={domainPort} placement="left">
|
||||||
<fs-copyable modelValue={value}>
|
<fs-copyable modelValue={domainPort} title={domainPort}>
|
||||||
<a target="_blank" href={url}>
|
<a target="_blank" href={url}>
|
||||||
{value}:{row.httpsPort}
|
{domainPort}
|
||||||
</a>
|
</a>
|
||||||
</fs-copyable>
|
</fs-copyable>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
import { onActivated, onMounted, ref, Ref } from "vue";
|
import { onActivated, onMounted, ref, Ref } from "vue";
|
||||||
import { useFs } from "@fast-crud/fast-crud";
|
import { useFs } from "@fast-crud/fast-crud";
|
||||||
import createCrudOptions from "./crud";
|
import createCrudOptions from "./crud";
|
||||||
import { siteIpApi } from "./api";
|
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "SiteIpCertMonitor",
|
name: "SiteIpCertMonitor",
|
||||||
@@ -23,11 +22,6 @@ const { crudBinding, crudRef, crudExpose } = useFs({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const siteInfoRef: Ref<any> = ref({});
|
|
||||||
onMounted(async () => {
|
|
||||||
siteInfoRef.value = await siteIpApi.GetObj(props.siteId);
|
|
||||||
});
|
|
||||||
|
|
||||||
// 页面打开后获取列表数据
|
// 页面打开后获取列表数据
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
crudExpose.doRefresh();
|
crudExpose.doRefresh();
|
||||||
|
|||||||
+13
-10
@@ -134,18 +134,21 @@ async function emitValue(value: any) {
|
|||||||
const userId = userStore.userInfo.id;
|
const userId = userStore.userInfo.id;
|
||||||
const isEnterprice = projectStore.isEnterprise;
|
const isEnterprice = projectStore.isEnterprise;
|
||||||
|
|
||||||
if (isEnterprice) {
|
if (pipeline?.value) {
|
||||||
const projectId = projectStore.currentProjectId;
|
if (isEnterprice) {
|
||||||
if (pipeline?.value?.projectId !== projectId) {
|
const projectId = projectStore.currentProjectId;
|
||||||
message.error("对不起,您不能修改其他项目流水线的通知");
|
if (pipeline?.value?.projectId !== projectId) {
|
||||||
return;
|
message.error("对不起,您不能修改其他项目流水线的通知");
|
||||||
}
|
return;
|
||||||
} else {
|
}
|
||||||
if (pipeline?.value?.userId !== userId) {
|
} else {
|
||||||
message.error("对不起,您不能修改他人流水线的通知");
|
if (pipeline?.value?.userId !== userId) {
|
||||||
return;
|
message.error("对不起,您不能修改他人流水线的通知");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
emit("change", value);
|
emit("change", value);
|
||||||
emit("update:modelValue", value);
|
emit("update:modelValue", value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export function useCertPipelineCreator() {
|
|||||||
const settingStore = useSettingStore();
|
const settingStore = useSettingStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
function createCrudOptions(req: { certPlugin: any; doSubmit: any; title?: string }): CreateCrudOptionsRet {
|
function createCrudOptions(req: { certPlugin: any; doSubmit: any; title?: string; initialForm?: any }): CreateCrudOptionsRet {
|
||||||
const inputs: any = {};
|
const inputs: any = {};
|
||||||
const moreParams = [];
|
const moreParams = [];
|
||||||
const doSubmit = req.doSubmit;
|
const doSubmit = req.doSubmit;
|
||||||
@@ -124,9 +124,11 @@ export function useCertPipelineCreator() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
crudOptions: {
|
crudOptions: {
|
||||||
form: {
|
form: {
|
||||||
|
initialForm: req.initialForm || {},
|
||||||
doSubmit,
|
doSubmit,
|
||||||
wrapper: {
|
wrapper: {
|
||||||
wrapClassName: "cert_pipeline_create_form",
|
wrapClassName: "cert_pipeline_create_form",
|
||||||
@@ -326,6 +328,15 @@ export function useCertPipelineCreator() {
|
|||||||
//检查是否流水线数量超出限制
|
//检查是否流水线数量超出限制
|
||||||
await checkPipelineLimit();
|
await checkPipelineLimit();
|
||||||
|
|
||||||
|
//设置系统初始值
|
||||||
|
const initialForm: any = {};
|
||||||
|
const pluginSysConfig = await pluginStore.getPluginConfig({ name: req.pluginName, type: "builtIn" });
|
||||||
|
if (pluginSysConfig.sysSetting?.input) {
|
||||||
|
for (const key in pluginSysConfig.sysSetting?.input) {
|
||||||
|
initialForm[key] = pluginSysConfig.sysSetting?.input[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function doSubmit({ form }: any) {
|
async function doSubmit({ form }: any) {
|
||||||
// const certDetail = readCertDetail(form.cert.crt);
|
// const certDetail = readCertDetail(form.cert.crt);
|
||||||
// 添加certd pipeline
|
// 添加certd pipeline
|
||||||
@@ -399,6 +410,7 @@ export function useCertPipelineCreator() {
|
|||||||
certPlugin,
|
certPlugin,
|
||||||
doSubmit,
|
doSubmit,
|
||||||
title: req.title,
|
title: req.title,
|
||||||
|
initialForm,
|
||||||
});
|
});
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
crudOptions.columns.groupId.form.value = req.defaultGroupId || undefined;
|
crudOptions.columns.groupId.form.value = req.defaultGroupId || undefined;
|
||||||
|
|||||||
+20
@@ -24,6 +24,9 @@
|
|||||||
</a-tabs>
|
</a-tabs>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<fs-button v-if="settingsStore.sysPublic.aiChatEnabled !== false" key="aiChat" :tooltip="{ title: 'AI分析异常' }" type="primary" icon="ion:color-wand-outline" @click="taskModal.onAiChat">AI分析</fs-button>
|
<fs-button v-if="settingsStore.sysPublic.aiChatEnabled !== false" key="aiChat" :tooltip="{ title: 'AI分析异常' }" type="primary" icon="ion:color-wand-outline" @click="taskModal.onAiChat">AI分析</fs-button>
|
||||||
|
<!-- <fs-button v-if="!settingsStore.isComm && currentStatus === 'error'" key="1v1" :tooltip="{ title: '升级专业版,获得一对一分析服务,为您排忧解难' }" class="isPlus" icon="imingcute:vip-1-line" @click="callService">
|
||||||
|
呼叫专家
|
||||||
|
</fs-button> -->
|
||||||
<fs-button key="rerun" type="primary" :tooltip="{ title: '强制重新执行此步骤' }" text="重新运行" icon="icon-park-outline:replay-music" @click="triggerRun(activeKey)"></fs-button>
|
<fs-button key="rerun" type="primary" :tooltip="{ title: '强制重新执行此步骤' }" text="重新运行" icon="icon-park-outline:replay-music" @click="triggerRun(activeKey)"></fs-button>
|
||||||
<fs-button key="downloadLogs" type="primary" :tooltip="{ title: '当前任务日志下载' }" icon="ion:arrow-down-circle-outline" @click="taskModal.onDownloadLogs">下载日志</fs-button>
|
<fs-button key="downloadLogs" type="primary" :tooltip="{ title: '当前任务日志下载' }" icon="ion:arrow-down-circle-outline" @click="taskModal.onDownloadLogs">下载日志</fs-button>
|
||||||
<fs-button key="cancel" :tooltip="{ title: '关闭窗口' }" icon="ion:close-circle-outline" @click="taskModal.onOk">关闭</fs-button>
|
<fs-button key="cancel" :tooltip="{ title: '关闭窗口' }" icon="ion:close-circle-outline" @click="taskModal.onOk">关闭</fs-button>
|
||||||
@@ -39,6 +42,7 @@ import PiStatusShow from "/@/views/certd/pipeline/pipeline/component/status-show
|
|||||||
import { usePreferences } from "/@/vben/preferences";
|
import { usePreferences } from "/@/vben/preferences";
|
||||||
import { useSettingStore } from "/@/store/settings/index";
|
import { useSettingStore } from "/@/store/settings/index";
|
||||||
import { notification } from "ant-design-vue";
|
import { notification } from "ant-design-vue";
|
||||||
|
import { mitter } from "/@/utils/util.mitt";
|
||||||
export default {
|
export default {
|
||||||
name: "PiTaskView",
|
name: "PiTaskView",
|
||||||
components: { PiStatusShow },
|
components: { PiStatusShow },
|
||||||
@@ -196,6 +200,19 @@ export default {
|
|||||||
taskModal.value.open = false;
|
taskModal.value.open = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const currentNode = computed(() => {
|
||||||
|
return detail.value?.nodes?.find(item => item.node.id === activeKey.value);
|
||||||
|
});
|
||||||
|
const currentStatus = computed(() => {
|
||||||
|
return currentNode.value?.node?.status?.result || "";
|
||||||
|
});
|
||||||
|
|
||||||
|
function callService() {
|
||||||
|
if (!settingsStore.isPlus) {
|
||||||
|
mitter.emit("openVipModal");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const settingsStore = useSettingStore();
|
const settingsStore = useSettingStore();
|
||||||
return {
|
return {
|
||||||
detail,
|
detail,
|
||||||
@@ -206,6 +223,9 @@ export default {
|
|||||||
tabPosition,
|
tabPosition,
|
||||||
triggerRun,
|
triggerRun,
|
||||||
settingsStore,
|
settingsStore,
|
||||||
|
currentNode,
|
||||||
|
currentStatus,
|
||||||
|
callService,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ import { useCertViewer } from "/@/views/certd/pipeline/use";
|
|||||||
import { useI18n } from "/@/locales";
|
import { useI18n } from "/@/locales";
|
||||||
import TriggerIcon from "./component/trigger-icon.vue";
|
import TriggerIcon from "./component/trigger-icon.vue";
|
||||||
import { useCrudPermission } from "/@/plugin/permission";
|
import { useCrudPermission } from "/@/plugin/permission";
|
||||||
|
import { onBeforeRouteLeave } from "vue-router";
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "PipelineEdit",
|
name: "PipelineEdit",
|
||||||
// eslint-disable-next-line vue/no-unused-components
|
// eslint-disable-next-line vue/no-unused-components
|
||||||
@@ -372,10 +372,22 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
emits: ["update:modelValue", "update:editMode"],
|
emits: ["update:modelValue", "update:editMode"],
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
|
onBeforeRouteLeave((to, from) => {
|
||||||
|
const newPipelineStr = JSON.stringify(pipeline.value || {});
|
||||||
|
if (props.editMode && pipelineOriginStr.value && pipelineOriginStr.value !== newPipelineStr) {
|
||||||
|
const answer = window.confirm("流水线还未保存,确定要离开吗?");
|
||||||
|
if (!answer) {
|
||||||
|
return false; // 返回 false 即可阻止本次路由跳转
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
//右侧选中的pipeline
|
//右侧选中的pipeline
|
||||||
const currentPipeline: Ref<any> = ref({});
|
const currentPipeline: Ref<any> = ref({});
|
||||||
const pipeline: Ref<any> = ref({});
|
const pipeline: Ref<any> = ref({});
|
||||||
|
const pipelineOriginStr = ref("");
|
||||||
const pipelineDetail: Ref<any> = ref({});
|
const pipelineDetail: Ref<any> = ref({});
|
||||||
const histories: Ref<RunHistory[]> = ref([]);
|
const histories: Ref<RunHistory[]> = ref([]);
|
||||||
|
|
||||||
@@ -423,6 +435,7 @@ export default defineComponent({
|
|||||||
await loadCurrentHistoryDetail();
|
await loadCurrentHistoryDetail();
|
||||||
pipeline.value = currentHistory.value.pipeline;
|
pipeline.value = currentHistory.value.pipeline;
|
||||||
currentPipeline.value = currentHistory.value.pipeline;
|
currentPipeline.value = currentHistory.value.pipeline;
|
||||||
|
pipelineOriginStr.value = JSON.stringify(pipeline.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
async function loadHistoryList(reload = false, historyId: number = null) {
|
async function loadHistoryList(reload = false, historyId: number = null) {
|
||||||
@@ -880,6 +893,7 @@ export default defineComponent({
|
|||||||
pipeline.value.version = version;
|
pipeline.value.version = version;
|
||||||
currentPipeline.value.version = version;
|
currentPipeline.value.version = version;
|
||||||
}
|
}
|
||||||
|
pipelineOriginStr.value = JSON.stringify(pipeline.value);
|
||||||
}
|
}
|
||||||
if (offEdit) {
|
if (offEdit) {
|
||||||
toggleEditMode(false);
|
toggleEditMode(false);
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||||||
},
|
},
|
||||||
showSelect: false,
|
showSelect: false,
|
||||||
createCrudOptions: createCrudOptionsPipeline,
|
createCrudOptions: createCrudOptionsPipeline,
|
||||||
|
height: "60vh",
|
||||||
crudOptionsOverride: {
|
crudOptionsOverride: {
|
||||||
actionbar: {
|
actionbar: {
|
||||||
show: false,
|
show: false,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { dict, useFormWrapper } from "@fast-crud/fast-crud";
|
import { compute, dict, useFormWrapper } from "@fast-crud/fast-crud";
|
||||||
import { checkPipelineLimit, eachSteps } from "/@/views/certd/pipeline/utils";
|
import { checkPipelineLimit, eachSteps } from "/@/views/certd/pipeline/utils";
|
||||||
import { templateApi } from "/@/views/certd/pipeline/template/api";
|
import { templateApi } from "/@/views/certd/pipeline/template/api";
|
||||||
import TemplateForm from "./form.vue";
|
import TemplateForm from "./form.vue";
|
||||||
@@ -7,6 +7,7 @@ import GroupSelector from "/@/views/certd/pipeline/group/group-selector.vue";
|
|||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { fillPipelineByDefaultForm } from "/@/views/certd/pipeline/certd-form/use";
|
import { fillPipelineByDefaultForm } from "/@/views/certd/pipeline/certd-form/use";
|
||||||
import { cloneDeep } from "lodash-es";
|
import { cloneDeep } from "lodash-es";
|
||||||
|
import { $t } from "/@/locales";
|
||||||
|
|
||||||
export function createExtraColumns() {
|
export function createExtraColumns() {
|
||||||
const groupDictRef = dict({
|
const groupDictRef = dict({
|
||||||
@@ -14,24 +15,82 @@ export function createExtraColumns() {
|
|||||||
value: "id",
|
value: "id",
|
||||||
label: "name",
|
label: "name",
|
||||||
});
|
});
|
||||||
|
const t = $t;
|
||||||
const randomHour = Math.floor(Math.random() * 6);
|
const randomHour = Math.floor(Math.random() * 6);
|
||||||
const randomMin = Math.floor(Math.random() * 60);
|
const randomMin = Math.floor(Math.random() * 60);
|
||||||
return {
|
return {
|
||||||
triggerCron: {
|
// triggerCron: {
|
||||||
title: "定时触发",
|
// title: "定时触发",
|
||||||
type: "text",
|
// type: "text",
|
||||||
|
// form: {
|
||||||
|
// value: `0 ${randomMin} ${randomHour} * * *`,
|
||||||
|
// component: {
|
||||||
|
// name: "cron-editor",
|
||||||
|
// vModel: "modelValue",
|
||||||
|
// placeholder: "0 0 4 * * *",
|
||||||
|
// },
|
||||||
|
// col: {
|
||||||
|
// span: 24,
|
||||||
|
// },
|
||||||
|
// helper: "点击上面的按钮,选择每天几点定时执行。\n建议设置为每天触发一次,证书未到期之前任务会跳过,不会重复执行",
|
||||||
|
// order: 100,
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
|
||||||
|
random: {
|
||||||
|
title: "定时类型",
|
||||||
|
form: {
|
||||||
|
value: true,
|
||||||
|
helper: "是否给流水线随机设置一个时间",
|
||||||
|
show: compute(({ form }) => {
|
||||||
|
return form.clear !== true;
|
||||||
|
}),
|
||||||
|
component: {
|
||||||
|
name: "fs-dict-switch",
|
||||||
|
vModel: "checked",
|
||||||
|
dict: dict({
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
label: "随机时间",
|
||||||
|
value: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "固定时间",
|
||||||
|
value: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
randomRange: {
|
||||||
|
title: "随机时间范围",
|
||||||
|
form: {
|
||||||
|
value: ["00:00:00", "08:00:00"],
|
||||||
|
helper: "随机时间范围,单位秒",
|
||||||
|
component: {
|
||||||
|
// <a-time-range-picker :bordered="false" />
|
||||||
|
name: "a-time-range-picker",
|
||||||
|
vModel: "value",
|
||||||
|
valueFormat: "HH:mm:ss",
|
||||||
|
},
|
||||||
|
show: compute(({ form }) => {
|
||||||
|
return form.clear !== true && form.random === true;
|
||||||
|
}),
|
||||||
|
rules: [{ required: true, message: "请选择随机时间范围" }],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
triggerCron: {
|
||||||
|
title: t("certd.schedule"),
|
||||||
form: {
|
form: {
|
||||||
value: `0 ${randomMin} ${randomHour} * * *`,
|
|
||||||
component: {
|
component: {
|
||||||
name: "cron-editor",
|
name: "cron-editor",
|
||||||
vModel: "modelValue",
|
vModel: "modelValue",
|
||||||
placeholder: "0 0 4 * * *",
|
|
||||||
},
|
},
|
||||||
col: {
|
show: compute(({ form }) => {
|
||||||
span: 24,
|
return form.clear !== true && form?.random !== true;
|
||||||
},
|
}),
|
||||||
helper: "点击上面的按钮,选择每天几点定时执行。\n建议设置为每天触发一次,证书未到期之前任务会跳过,不会重复执行",
|
rules: [{ required: true, message: t("certd.selectCron") }],
|
||||||
order: 100,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
notification: {
|
notification: {
|
||||||
|
|||||||
@@ -118,6 +118,10 @@ export function useTransfer() {
|
|||||||
<div class="text-2xl font-bold"> 迁移到→ </div>
|
<div class="text-2xl font-bold"> 迁移到→ </div>
|
||||||
<div>项目:"{projectStore.currentProject?.name}"</div>
|
<div>项目:"{projectStore.currentProject?.name}"</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text-center m-4">
|
||||||
|
<p class="text-red-500">注意;此操作不可逆,一旦迁移,数据将无法还原回个人用户名下。</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row items-center justify-center w-full">
|
<div class="flex flex-row items-center justify-center w-full">
|
||||||
<a-button type="primary" onClick={doTransfer}>
|
<a-button type="primary" onClick={doTransfer}>
|
||||||
确认迁移
|
确认迁移
|
||||||
|
|||||||
@@ -238,10 +238,14 @@ const avatar = computed(() => {
|
|||||||
}
|
}
|
||||||
return `/api/basic/file/download?key=${avt}`;
|
return `/api/basic/file/download?key=${avt}`;
|
||||||
});
|
});
|
||||||
|
const dateNow = ref(Date.now());
|
||||||
const now = computed(() => {
|
const now = computed(() => {
|
||||||
const serverTime = Date.now() - settingStore.app.deltaTime;
|
const serverTime = dateNow.value - settingStore.app.deltaTime;
|
||||||
return dayjs(serverTime).format("YYYY-MM-DD HH:mm:ss");
|
return dayjs(serverTime).format("YYYY-MM-DD HH:mm:ss");
|
||||||
});
|
});
|
||||||
|
setInterval(() => {
|
||||||
|
dateNow.value = Date.now();
|
||||||
|
}, 5000);
|
||||||
|
|
||||||
const deltaTimeWarning = computed(() => {
|
const deltaTimeWarning = computed(() => {
|
||||||
return Math.abs(settingStore.app.deltaTime) > 1000 * 60 * 4;
|
return Math.abs(settingStore.app.deltaTime) > 1000 * 60 * 4;
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||||||
width: "auto",
|
width: "auto",
|
||||||
},
|
},
|
||||||
buildUrl(key: string) {
|
buildUrl(key: string) {
|
||||||
return `api/basic/file/download?&key=` + key;
|
return `api/basic/file/download?token=${userStore.getToken}&key=` + key;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -188,7 +188,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||||||
onReady: null,
|
onReady: null,
|
||||||
uploader: {
|
uploader: {
|
||||||
type: "form",
|
type: "form",
|
||||||
action: "/basic/file/upload",
|
action: "/basic/file/upload?token=" + userStore.getToken,
|
||||||
name: "file",
|
name: "file",
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: "Bearer " + userStore.getToken,
|
Authorization: "Bearer " + userStore.getToken,
|
||||||
|
|||||||
@@ -135,3 +135,11 @@ export async function DoTest(req: { id: number; input: any }): Promise<void> {
|
|||||||
data: req,
|
data: req,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function GetPluginByName(name: string): Promise<PluginConfigBean> {
|
||||||
|
return await request({
|
||||||
|
url: apiPrefix + "/getPluginByName",
|
||||||
|
method: "post",
|
||||||
|
data: { name },
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -36,6 +36,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
|
<a-form-item label="其他配置">
|
||||||
|
<a-button type="primary" @click="doPluginConfig">证书申请插件默认值设置</a-button>
|
||||||
|
<div class="helper">
|
||||||
|
<div>自定义证书申请插件参数</div>
|
||||||
|
</div>
|
||||||
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item :wrapper-col="{ offset: 8, span: 16 }">
|
<a-form-item :wrapper-col="{ offset: 8, span: 16 }">
|
||||||
<a-button :loading="saveLoading" type="primary" html-type="submit">保存</a-button>
|
<a-button :loading="saveLoading" type="primary" html-type="submit">保存</a-button>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -47,10 +54,10 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import AccessSelector from "/@/views/certd/access/access-selector/index.vue";
|
import AccessSelector from "/@/views/certd/access/access-selector/index.vue";
|
||||||
import { reactive, ref } from "vue";
|
import { reactive, ref } from "vue";
|
||||||
import { CommPluginConfig, GetCommPluginConfigs, SaveCommPluginConfigs } from "/@/views/sys/plugin/api";
|
import { CommPluginConfig, GetCommPluginConfigs, SaveCommPluginConfigs, GetPluginByName } from "/@/views/sys/plugin/api";
|
||||||
import { merge } from "lodash-es";
|
import { merge } from "lodash-es";
|
||||||
import { notification } from "ant-design-vue";
|
import { notification } from "ant-design-vue";
|
||||||
|
import { usePluginConfig } from "./use-config";
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "SysPluginConfig",
|
name: "SysPluginConfig",
|
||||||
});
|
});
|
||||||
@@ -87,5 +94,12 @@ const onFinish = async (form: any) => {
|
|||||||
const onFinishFailed = (errorInfo: any) => {
|
const onFinishFailed = (errorInfo: any) => {
|
||||||
console.log("Failed:", errorInfo);
|
console.log("Failed:", errorInfo);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const { openConfigDialog } = usePluginConfig();
|
||||||
|
|
||||||
|
async function doPluginConfig() {
|
||||||
|
const certApplyInfo = await GetPluginByName("CertApply");
|
||||||
|
await openConfigDialog({ row: certApplyInfo, crudExpose: null });
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less"></style>
|
<style lang="less"></style>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="origin-metadata w-100%">
|
<div class="origin-metadata w-100%">
|
||||||
<div class="block-title">
|
<div class="block-title">
|
||||||
自定义插件参数配置
|
自定义插件参数配置
|
||||||
<div class="helper">可以设置插件选项的配置,设置配置默认值、修改帮助说明、设置是否显示该字段等</div>
|
<div class="helper">可以设置插件选项的配置,设置配置默认值、修改帮助说明、设置是否显示该字段等,在用户申请证书对话框里面使用你自定义设置的展示效果</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-10">
|
<div class="p-10">
|
||||||
<div ref="formRef" class="config-form w-full" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<div ref="formRef" class="config-form w-full" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
@@ -43,13 +43,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="tsx">
|
<script setup lang="tsx">
|
||||||
import { computed, nextTick, onMounted, reactive, ref, Ref, unref } from "vue";
|
import { dict, FsRender } from "@fast-crud/fast-crud";
|
||||||
|
import { cloneDeep, merge, unset } from "lodash-es";
|
||||||
|
import { computed, onMounted, reactive, ref } from "vue";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import * as api from "./api";
|
|
||||||
import { usePluginStore } from "/@/store/plugin";
|
|
||||||
import { cloneDeep, get, merge, set, unset } from "lodash-es";
|
|
||||||
import Rollbackable from "./rollbackable.vue";
|
import Rollbackable from "./rollbackable.vue";
|
||||||
import { FsRender } from "@fast-crud/fast-crud";
|
import { usePluginStore } from "/@/store/plugin";
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const pluginStore = usePluginStore();
|
const pluginStore = usePluginStore();
|
||||||
@@ -68,6 +67,18 @@ const labelCol = ref({
|
|||||||
const wrapperCol = ref({ span: 16 });
|
const wrapperCol = ref({ span: 16 });
|
||||||
const configForm: any = reactive({});
|
const configForm: any = reactive({});
|
||||||
|
|
||||||
|
const showDict = dict({
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
value: true,
|
||||||
|
label: "显示",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: false,
|
||||||
|
label: "不显示",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
function getScope() {
|
function getScope() {
|
||||||
return {
|
return {
|
||||||
form: configForm,
|
form: configForm,
|
||||||
@@ -105,12 +116,25 @@ const editableKeys = ref([
|
|||||||
defaultRender(item: any) {
|
defaultRender(item: any) {
|
||||||
return () => {
|
return () => {
|
||||||
const value = item["show"];
|
const value = item["show"];
|
||||||
return value === false ? "不显示" : "显示";
|
let showType = "";
|
||||||
|
let color = "";
|
||||||
|
if (item.mergeScript?.indexOf("show:") >= -1) {
|
||||||
|
showType = "条件显示";
|
||||||
|
color = "orange";
|
||||||
|
} else {
|
||||||
|
showType = value === false ? "不显示" : "显示";
|
||||||
|
color = value === false ? "red" : "green";
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<a-tag color={color} size="small">
|
||||||
|
{showType}
|
||||||
|
</a-tag>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
editRender(item: any) {
|
editRender(item: any) {
|
||||||
return () => {
|
return () => {
|
||||||
return <a-switch vModel:checked={configForm[item.key]["show"]} />;
|
return <fs-dict-switch vModel:checked={configForm[item.key]["show"]} dict={showDict} />;
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -178,6 +178,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||||||
type: "dict-select",
|
type: "dict-select",
|
||||||
search: {
|
search: {
|
||||||
show: true,
|
show: true,
|
||||||
|
component: {
|
||||||
|
disabled: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
order: 0,
|
order: 0,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { defineProps } from "vue";
|
import { dict } from "@fast-crud/fast-crud";
|
||||||
|
|
||||||
const props = defineProps<{ value: any }>();
|
const props = defineProps<{ value: any }>();
|
||||||
|
|
||||||
@@ -10,20 +10,42 @@ function setValue() {
|
|||||||
function clearValue() {
|
function clearValue() {
|
||||||
emits("clear");
|
emits("clear");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const switchDict = dict({
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
value: true,
|
||||||
|
label: "自定义",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: false,
|
||||||
|
label: "原始值",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
|
function onSwitchChange(value: boolean) {
|
||||||
|
if (value) {
|
||||||
|
setValue();
|
||||||
|
} else {
|
||||||
|
clearValue();
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="rollbackable">
|
<div class="rollbackable">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div style="width: 100px">
|
<div style="width: 100px">
|
||||||
<a-tag v-if="value === undefined" color="green" size="small" class="pointer flex-inline items-center" @click.stop="setValue">
|
<!-- <a-tag v-if="value === undefined" color="green" size="small" class="pointer flex-inline items-center" @click.stop="setValue">
|
||||||
<fs-icon icon="material-symbols:edit" class="mr-5"></fs-icon>
|
<fs-icon icon="material-symbols:edit" class="mr-5"></fs-icon>
|
||||||
自定义
|
自定义
|
||||||
</a-tag>
|
</a-tag>
|
||||||
<a-tag v-else color="red" size="small" class="pointer flex-inline items-center" @click.stop="clearValue">
|
<a-tag v-else color="red" size="small" class="pointer flex-inline items-center" @click.stop="clearValue">
|
||||||
<fs-icon icon="material-symbols:undo" class="mr-5"></fs-icon>
|
<fs-icon icon="material-symbols:undo" class="mr-5"></fs-icon>
|
||||||
还原
|
还原
|
||||||
</a-tag>
|
</a-tag> -->
|
||||||
|
<fs-dict-switch :checked="value !== undefined" :dict="switchDict" @change="onSwitchChange" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 overflow-hidden value-render">
|
<div class="flex-1 overflow-hidden value-render">
|
||||||
<slot v-if="value === undefined" name="default"></slot>
|
<slot v-if="value === undefined" name="default"></slot>
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ export function usePluginConfig() {
|
|||||||
},
|
},
|
||||||
afterSubmit() {
|
afterSubmit() {
|
||||||
notification.success({ message: t("certd.operationSuccess") });
|
notification.success({ message: t("certd.operationSuccess") });
|
||||||
crudExpose.doRefresh();
|
if (crudExpose) {
|
||||||
|
crudExpose.doRefresh();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async doSubmit({}: any) {
|
async doSubmit({}: any) {
|
||||||
const form = configEditorRef.value.getForm();
|
const form = configEditorRef.value.getForm();
|
||||||
|
|||||||
@@ -25,6 +25,10 @@
|
|||||||
<div class="helper" v-html="t('certd.sys.setting.noticeHelper')"></div>
|
<div class="helper" v-html="t('certd.sys.setting.noticeHelper')"></div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
|
<a-form-item :label="t('certd.sys.setting.bindUrl')">
|
||||||
|
<a-button class="ml-2" type="primary" @click="settingsStore.openBindUrlModal({ closable: true })">{{ t("certd.sys.setting.bindUrl") }}</a-button>
|
||||||
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item label=" " :colon="false" :wrapper-col="{ span: 8 }">
|
<a-form-item label=" " :colon="false" :wrapper-col="{ span: 8 }">
|
||||||
<a-button :loading="saveLoading" type="primary" html-type="submit">{{ t("certd.saveButton") }}</a-button>
|
<a-button :loading="saveLoading" type="primary" html-type="submit">{{ t("certd.saveButton") }}</a-button>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import { SysSettings } from "/@/views/sys/settings/api";
|
|||||||
import * as api from "/@/views/sys/settings/api";
|
import * as api from "/@/views/sys/settings/api";
|
||||||
import { merge } from "lodash-es";
|
import { merge } from "lodash-es";
|
||||||
import { useSettingStore } from "/@/store/settings";
|
import { useSettingStore } from "/@/store/settings";
|
||||||
import { notification } from "ant-design-vue";
|
import { Modal, notification } from "ant-design-vue";
|
||||||
import { useI18n } from "/src/locales";
|
import { useI18n } from "/src/locales";
|
||||||
import { dict } from "@fast-crud/fast-crud";
|
import { dict } from "@fast-crud/fast-crud";
|
||||||
import { useProjectStore } from "/@/store/project";
|
import { useProjectStore } from "/@/store/project";
|
||||||
@@ -80,6 +80,24 @@ const onFinish = async (form: any) => {
|
|||||||
notification.success({
|
notification.success({
|
||||||
message: t("certd.saveSuccess"),
|
message: t("certd.saveSuccess"),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (formState.public.adminMode === "enterprise") {
|
||||||
|
Modal.confirm({
|
||||||
|
title: "数据迁移",
|
||||||
|
okText: "去迁移",
|
||||||
|
content: () => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<div>设置为企业模式之后,之前创建的个人数据不会显示</div>
|
||||||
|
<div>是否前往迁移数据到项目? </div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
onOk: () => {
|
||||||
|
goCurrentProject();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
saveLoading.value = false;
|
saveLoading.value = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<pre class="helper pre">{{ t("certd.sys.setting.passkeyEnabledHelper", [bindDomain]) }}</pre>
|
<pre class="helper pre">{{ t("certd.sys.setting.passkeyEnabledHelper", [bindDomain]) }}</pre>
|
||||||
<div v-if="!bindDomainIsSame" class="text-red-500 text-sm mt-2">
|
<div v-if="!bindDomainIsSame" class="text-red-500 text-sm mt-2">
|
||||||
{{ t("certd.sys.setting.passkeyHostnameNotSame") }} <a-button class="ml-2" size="small" type="primary" @click="settingsStore.openBindUrlModal()">{{ t("certd.sys.setting.bindUrl") }}</a-button>
|
{{ t("certd.sys.setting.passkeyHostnameNotSame") }} <a-button class="ml-2" size="small" type="primary" @click="settingsStore.openBindUrlModal({ closable: true })">{{ t("certd.sys.setting.bindUrl") }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :label="t('certd.sys.setting.enableOauth')" :name="['public', 'oauthEnabled']">
|
<a-form-item :label="t('certd.sys.setting.enableOauth')" :name="['public', 'oauthEnabled']">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { request } from "/src/api/service";
|
import { request } from "/src/api/service";
|
||||||
const apiPrefix = "/sys/site";
|
const apiPrefix = "/sys/site";
|
||||||
|
|
||||||
export async function SettingsGet(key: string) {
|
export async function SettingsGet() {
|
||||||
return await request({
|
return await request({
|
||||||
url: apiPrefix + "/get",
|
url: apiPrefix + "/get",
|
||||||
method: "post",
|
method: "post",
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ const onFinish = async (form: any) => {
|
|||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const uploaderConfig = ref({
|
const uploaderConfig = ref({
|
||||||
type: "form",
|
type: "form",
|
||||||
action: "/basic/file/upload",
|
action: "/basic/file/upload?token=" + userStore.getToken,
|
||||||
name: "file",
|
name: "file",
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: "Bearer " + userStore.getToken,
|
Authorization: "Bearer " + userStore.getToken,
|
||||||
|
|||||||
@@ -3,6 +3,21 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 修复自定义插件删除后没有反注册的bug ([df98463](https://github.com/certd/certd/commit/df9846332596d2afaba53e66d2897aa1c598f9c4))
|
||||||
|
* 修复spaceship创建record报错的bug ([70b46d4](https://github.com/certd/certd/commit/70b46d4a8f89cf8eded21ebb237e8c8ce6c40d30))
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* 1panel支持先上传证书再选择证书 ([7a9eec8](https://github.com/certd/certd/commit/7a9eec88e8eddf40dba055c072b5b2b0f67c1407))
|
||||||
|
* 部署到1panel面板支持mux模式 ([d05129e](https://github.com/certd/certd/commit/d05129ec67893b0b639003a4bca6878d128f56ad))
|
||||||
|
* 流水线修改编辑之后,增加未保存提示 ([21620ac](https://github.com/certd/certd/commit/21620ac6bdeb57e43509156a77037fc07c44282a))
|
||||||
|
* 修复检查全部某些情况下无效的bug,优化公共触发站点证书检查定时逻辑 ([ee53589](https://github.com/certd/certd/commit/ee535895a3166c6f9046963e28fa8f22f018b574))
|
||||||
|
* 增加域名管理 子域名检查提醒 ([2bdf183](https://github.com/certd/certd/commit/2bdf1832da73a3728f3ac415837bc26e70531cd6))
|
||||||
|
|
||||||
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -17,6 +17,18 @@ input:
|
|||||||
apiKey
|
apiKey
|
||||||
required: true
|
required: true
|
||||||
encrypt: true
|
encrypt: true
|
||||||
|
version:
|
||||||
|
title: 版本
|
||||||
|
component:
|
||||||
|
name: a-select
|
||||||
|
options:
|
||||||
|
- label: v3.x
|
||||||
|
value: '3'
|
||||||
|
- label: v2.x
|
||||||
|
value: '2'
|
||||||
|
helper: apisix系统的版本
|
||||||
|
value: '3'
|
||||||
|
required: true
|
||||||
testRequest:
|
testRequest:
|
||||||
title: 测试
|
title: 测试
|
||||||
component:
|
component:
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
name: hipmdnsmgr
|
||||||
|
title: HiPM DNSMgr
|
||||||
|
icon: svg:icon-dns
|
||||||
|
desc: HiPM DNSMgr API Token 授权
|
||||||
|
input:
|
||||||
|
endpoint:
|
||||||
|
title: 服务器地址
|
||||||
|
component:
|
||||||
|
name: a-input
|
||||||
|
allowClear: true
|
||||||
|
placeholder: http://localhost:3001
|
||||||
|
required: true
|
||||||
|
helper: 'HiPM DNSMgr 服务器地址,例如: http://localhost:3001'
|
||||||
|
apiToken:
|
||||||
|
title: API Token
|
||||||
|
required: true
|
||||||
|
encrypt: true
|
||||||
|
helper: 在 DNSMgr 设置 > API Token 中创建的令牌
|
||||||
|
testRequest:
|
||||||
|
title: 测试连接
|
||||||
|
component:
|
||||||
|
name: api-test
|
||||||
|
action: TestRequest
|
||||||
|
helper: 点击测试接口是否正常
|
||||||
|
pluginType: access
|
||||||
|
type: builtIn
|
||||||
|
scriptFilePath: /plugins/plugin-hipmdnsmgr/access/hipmdnsmgr-access.js
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
name: nginxProxyManager
|
||||||
|
title: Nginx Proxy Manager 授权
|
||||||
|
desc: 用于登录 Nginx Proxy Manager,并为代理主机证书部署提供授权。
|
||||||
|
icon: logos:nginx
|
||||||
|
input:
|
||||||
|
endpoint:
|
||||||
|
title: NPM 地址
|
||||||
|
component:
|
||||||
|
name: a-input
|
||||||
|
allowClear: true
|
||||||
|
placeholder: https://npm.example.com
|
||||||
|
helper: 请输入 Nginx Proxy Manager 根地址,不要带 /api 后缀。
|
||||||
|
required: true
|
||||||
|
email:
|
||||||
|
title: 邮箱
|
||||||
|
component:
|
||||||
|
name: a-input
|
||||||
|
allowClear: true
|
||||||
|
placeholder: admin@example.com
|
||||||
|
required: true
|
||||||
|
password:
|
||||||
|
title: 密码
|
||||||
|
component:
|
||||||
|
name: a-input-password
|
||||||
|
allowClear: true
|
||||||
|
placeholder: 请输入密码
|
||||||
|
required: true
|
||||||
|
encrypt: true
|
||||||
|
totpSecret:
|
||||||
|
title: TOTP 密钥
|
||||||
|
component:
|
||||||
|
name: a-input-password
|
||||||
|
allowClear: true
|
||||||
|
placeholder: Optional base32 TOTP secret
|
||||||
|
helper: 当 Nginx Proxy Manager 账号开启 2FA 时必填。
|
||||||
|
required: false
|
||||||
|
encrypt: true
|
||||||
|
ignoreTls:
|
||||||
|
title: 忽略无效 TLS
|
||||||
|
component:
|
||||||
|
name: a-switch
|
||||||
|
vModel: checked
|
||||||
|
helper: 仅在 Nginx Proxy Manager 使用自签 HTTPS 证书时开启。
|
||||||
|
required: false
|
||||||
|
testRequest:
|
||||||
|
title: 测试
|
||||||
|
component:
|
||||||
|
name: api-test
|
||||||
|
action: onTestRequest
|
||||||
|
helper: 测试登录并拉取代理主机列表。
|
||||||
|
pluginType: access
|
||||||
|
type: builtIn
|
||||||
|
scriptFilePath: /plugins/plugin-nginx-proxy-manager/access.js
|
||||||
@@ -23,7 +23,7 @@ input:
|
|||||||
component:
|
component:
|
||||||
name: api-test
|
name: api-test
|
||||||
action: TestRequest
|
action: TestRequest
|
||||||
helper: 测试 API 连接是否正常
|
helper: 测试 API 连接是否正常,需要域名查询权限
|
||||||
pluginType: access
|
pluginType: access
|
||||||
type: builtIn
|
type: builtIn
|
||||||
scriptFilePath: /plugins/plugin-spaceship/access.js
|
scriptFilePath: /plugins/plugin-spaceship/access.js
|
||||||
|
|||||||
@@ -62,8 +62,8 @@ input:
|
|||||||
pty:
|
pty:
|
||||||
title: 伪终端
|
title: 伪终端
|
||||||
helper: >-
|
helper: >-
|
||||||
如果登录报错:all authentication methods
|
如果登录报错:all authentication methods failed / unable to
|
||||||
failed,可以尝试开启伪终端模式进行keyboard-interactive方式登录
|
exec,可以尝试开启伪终端模式进行keyboard-interactive方式登录
|
||||||
|
|
||||||
开启后对日志输出有一定的影响
|
开启后对日志输出有一定的影响
|
||||||
component:
|
component:
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
name: technitium
|
||||||
|
title: Technitium DNS Server
|
||||||
|
icon: clarity:server-line
|
||||||
|
desc: Technitium DNS Server 自建DNS服务器授权
|
||||||
|
input:
|
||||||
|
apiUrl:
|
||||||
|
title: API地址
|
||||||
|
value: http://localhost:5380
|
||||||
|
component:
|
||||||
|
name: a-input
|
||||||
|
allowClear: true
|
||||||
|
placeholder: http://localhost:5380
|
||||||
|
required: true
|
||||||
|
username:
|
||||||
|
title: 用户名
|
||||||
|
component:
|
||||||
|
name: a-input
|
||||||
|
allowClear: true
|
||||||
|
placeholder: admin
|
||||||
|
required: false
|
||||||
|
password:
|
||||||
|
title: 密码
|
||||||
|
component:
|
||||||
|
name: a-input
|
||||||
|
type: password
|
||||||
|
allowClear: true
|
||||||
|
placeholder: 密码
|
||||||
|
required: false
|
||||||
|
encrypt: true
|
||||||
|
testRequest:
|
||||||
|
title: 测试
|
||||||
|
component:
|
||||||
|
name: api-test
|
||||||
|
action: TestRequest
|
||||||
|
helper: 点击测试接口是否正常
|
||||||
|
pluginType: access
|
||||||
|
type: builtIn
|
||||||
|
scriptFilePath: /plugins/plugin-technitium/access.js
|
||||||
@@ -72,6 +72,22 @@ input:
|
|||||||
|
|
||||||
helper: 要更新的1Panel证书的节点信息,目前只有v2存在此概念
|
helper: 要更新的1Panel证书的节点信息,目前只有v2存在此概念
|
||||||
order: 0
|
order: 0
|
||||||
|
sslMode:
|
||||||
|
title: SSL模式
|
||||||
|
helper: SSL模式,只有2.1.x以上版本才支持,旧版本保持默认即可
|
||||||
|
component:
|
||||||
|
name: a-select
|
||||||
|
vMode: value
|
||||||
|
options:
|
||||||
|
- label: 启用SSL(旧版本)
|
||||||
|
value: enable
|
||||||
|
- label: Strict模式(>=2.1.x)
|
||||||
|
value: Enable
|
||||||
|
- label: Mux模式(>=2.1.x)
|
||||||
|
value: Mux
|
||||||
|
value: enable
|
||||||
|
required: true
|
||||||
|
order: 0
|
||||||
output: {}
|
output: {}
|
||||||
pluginType: deploy
|
pluginType: deploy
|
||||||
type: builtIn
|
type: builtIn
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ input:
|
|||||||
- certDomains
|
- certDomains
|
||||||
- accessId
|
- accessId
|
||||||
- accessId
|
- accessId
|
||||||
|
uploadCert: {}
|
||||||
required: true
|
required: true
|
||||||
mergeScript: |2-
|
mergeScript: |2-
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
showRunStrategy: false
|
||||||
|
default:
|
||||||
|
strategy:
|
||||||
|
runStrategy: 1
|
||||||
|
name: NginxProxyManagerDeploy
|
||||||
|
title: Nginx Proxy Manager-部署到主机
|
||||||
|
desc: 上传自定义证书到 Nginx Proxy Manager,并绑定到所选主机。
|
||||||
|
icon: logos:nginx
|
||||||
|
group: panel
|
||||||
|
input:
|
||||||
|
cert:
|
||||||
|
title: 域名证书
|
||||||
|
helper: 请选择前置任务产出的证书。
|
||||||
|
component:
|
||||||
|
name: output-selector
|
||||||
|
from:
|
||||||
|
- ':cert:'
|
||||||
|
required: true
|
||||||
|
order: 0
|
||||||
|
certDomains:
|
||||||
|
title: 证书域名
|
||||||
|
component:
|
||||||
|
name: cert-domains-getter
|
||||||
|
required: false
|
||||||
|
order: 0
|
||||||
|
accessId:
|
||||||
|
title: NPM授权
|
||||||
|
component:
|
||||||
|
name: access-selector
|
||||||
|
type: nginxProxyManager
|
||||||
|
helper: 选择用于部署的 Nginx Proxy Manager 授权。
|
||||||
|
required: true
|
||||||
|
order: 0
|
||||||
|
proxyHostIds:
|
||||||
|
title: 代理主机
|
||||||
|
component:
|
||||||
|
name: remote-select
|
||||||
|
vModel: value
|
||||||
|
mode: tags
|
||||||
|
type: plugin
|
||||||
|
action: onGetProxyHostOptions
|
||||||
|
search: true
|
||||||
|
pager: false
|
||||||
|
multi: true
|
||||||
|
watches:
|
||||||
|
- certDomains
|
||||||
|
- accessId
|
||||||
|
helper: 选择要绑定此证书的一个或多个代理主机。
|
||||||
|
required: true
|
||||||
|
order: 0
|
||||||
|
certificateLabel:
|
||||||
|
title: 证书标识
|
||||||
|
component:
|
||||||
|
name: a-input
|
||||||
|
allowClear: true
|
||||||
|
placeholder: certd_npm_example_com
|
||||||
|
helper: 可选。留空时默认使用 certd_npm_<主域名规范化>。
|
||||||
|
required: false
|
||||||
|
order: 0
|
||||||
|
cleanupMatchingCertificates:
|
||||||
|
title: 自动清理未使用证书
|
||||||
|
component:
|
||||||
|
name: a-switch
|
||||||
|
vModel: checked
|
||||||
|
helper: 部署成功后,自动删除除当前证书外所有未被任何主机引用的证书。
|
||||||
|
required: false
|
||||||
|
order: 0
|
||||||
|
output: {}
|
||||||
|
pluginType: deploy
|
||||||
|
type: builtIn
|
||||||
|
scriptFilePath: /plugins/plugin-nginx-proxy-manager/plugins/plugin-deploy-to-proxy-hosts.js
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user