mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-27 20:49:03 +08:00
feat: 证书部分增加一些提示 (#3349)
This commit is contained in:
parent
bcd88c6eca
commit
3dc829a630
@ -124,7 +124,7 @@ func (b *BaseApi) ObtainWebsiteCA(c *gin.Context) {
|
||||
// @Param request body request.WebsiteCAObtain true "request"
|
||||
// @Success 200
|
||||
// @Security ApiKeyAuth
|
||||
// @Router /websites/ca/obtain [post]
|
||||
// @Router /websites/ca/renew [post]
|
||||
// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_cas","output_column":"name","output_value":"name"}],"formatZH":"自签 SSL 证书 [name]","formatEN":"Obtain SSL [name]"}
|
||||
func (b *BaseApi) RenewWebsiteCA(c *gin.Context) {
|
||||
var req request.WebsiteCARenew
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Code generated by swaggo/swag. DO NOT EDIT.
|
||||
|
||||
// Package docs GENERATED BY SWAG; DO NOT EDIT
|
||||
// This file was generated by swaggo/swag
|
||||
package docs
|
||||
|
||||
import "github.com/swaggo/swag"
|
||||
@ -11096,6 +11096,57 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"/websites/ca/obtain": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "自签 SSL 证书",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Website CA"
|
||||
],
|
||||
"summary": "Obtain SSL",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.WebsiteCAObtain"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"x-panel-log": {
|
||||
"BeforeFunctions": [
|
||||
{
|
||||
"db": "website_cas",
|
||||
"input_column": "id",
|
||||
"input_value": "id",
|
||||
"isList": false,
|
||||
"output_column": "name",
|
||||
"output_value": "name"
|
||||
}
|
||||
],
|
||||
"bodyKeys": [
|
||||
"id"
|
||||
],
|
||||
"formatEN": "Obtain SSL [name]",
|
||||
"formatZH": "自签 SSL 证书 [name]",
|
||||
"paramKeys": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/ca/renew": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
|
@ -11089,6 +11089,57 @@
|
||||
}
|
||||
},
|
||||
"/websites/ca/obtain": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "自签 SSL 证书",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Website CA"
|
||||
],
|
||||
"summary": "Obtain SSL",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.WebsiteCAObtain"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"x-panel-log": {
|
||||
"BeforeFunctions": [
|
||||
{
|
||||
"db": "website_cas",
|
||||
"input_column": "id",
|
||||
"input_value": "id",
|
||||
"isList": false,
|
||||
"output_column": "name",
|
||||
"output_value": "name"
|
||||
}
|
||||
],
|
||||
"bodyKeys": [
|
||||
"id"
|
||||
],
|
||||
"formatEN": "Obtain SSL [name]",
|
||||
"formatZH": "自签 SSL 证书 [name]",
|
||||
"paramKeys": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/ca/renew": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
|
@ -11807,6 +11807,39 @@ paths:
|
||||
formatZH: 删除网站 ca [name]
|
||||
paramKeys: []
|
||||
/websites/ca/obtain:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 自签 SSL 证书
|
||||
parameters:
|
||||
- description: request
|
||||
in: body
|
||||
name: request
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.WebsiteCAObtain'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Obtain SSL
|
||||
tags:
|
||||
- Website CA
|
||||
x-panel-log:
|
||||
BeforeFunctions:
|
||||
- db: website_cas
|
||||
input_column: id
|
||||
input_value: id
|
||||
isList: false
|
||||
output_column: name
|
||||
output_value: name
|
||||
bodyKeys:
|
||||
- id
|
||||
formatEN: Obtain SSL [name]
|
||||
formatZH: 自签 SSL 证书 [name]
|
||||
paramKeys: []
|
||||
/websites/ca/renew:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
|
@ -1882,6 +1882,7 @@ const message = {
|
||||
googleHelper:
|
||||
"<a target=“_blank” href='https://cloud.google.com/certificate-manager/docs/public-ca-tutorial?hl=zh-cn'>如何取得EAB HmacKey 和EAB kid</a > ",
|
||||
googleCloudHelper: 'Google Cloud API is not accessible in most parts of mainland China',
|
||||
httpHelper2: 'Unable to apply for a generic domain name certificate in HTTP mode',
|
||||
},
|
||||
firewall: {
|
||||
create: 'Create rule',
|
||||
|
@ -1768,6 +1768,7 @@ const message = {
|
||||
googleHelper:
|
||||
"<a target=“_blank” href='https://cloud.google.com/certificate-manager/docs/public-ca-tutorial?hl=zh-cn'>如何取得EAB HmacKey 和EAB kid</a > ",
|
||||
googleCloudHelper: 'Google Cloud API 大陸大部分地區無法存取',
|
||||
httpHelper2: 'HTTP 模式無法申請泛網域憑證',
|
||||
},
|
||||
firewall: {
|
||||
create: '創建規則',
|
||||
|
@ -1768,6 +1768,7 @@ const message = {
|
||||
googleHelper:
|
||||
"<a target=“_blank” href='https://cloud.google.com/certificate-manager/docs/public-ca-tutorial?hl=zh-cn'>如何获取 EAB HmacKey 和 EAB kid</a> ",
|
||||
googleCloudHelper: 'Google Cloud API 大陆大部分地区无法访问',
|
||||
httpHelper2: 'HTTP 模式无法申请泛域名证书',
|
||||
},
|
||||
firewall: {
|
||||
create: '创建规则',
|
||||
|
@ -24,6 +24,9 @@
|
||||
<span class="input-help" v-if="account.type === 'buypass'">
|
||||
{{ $t('ssl.buypassHelper') }}
|
||||
</span>
|
||||
<span class="input-help" v-if="account.type == 'google'">
|
||||
{{ $t('ssl.googleCloudHelper') }}
|
||||
</span>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('website.keyType')" prop="keyType">
|
||||
<el-select v-model="account.keyType">
|
||||
@ -34,7 +37,6 @@
|
||||
:value="keyType.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
<span class="input-help">{{ $t('ssl.googleCloudHelper') }}</span>
|
||||
</el-form-item>
|
||||
<div v-if="account.type == 'google'">
|
||||
<el-form-item label="EAB kid" prop="eabKid">
|
||||
|
@ -67,6 +67,9 @@
|
||||
<span class="input-help" v-if="ssl.provider === 'http'">
|
||||
{{ $t('ssl.httpHelper') }}
|
||||
</span>
|
||||
<span class="input-help text-red-500" v-if="ssl.provider === 'http'">
|
||||
{{ $t('ssl.httpHelper2') }}
|
||||
</span>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('website.dnsAccount')"
|
||||
|
Loading…
Reference in New Issue
Block a user