mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-02-04 14:33:01 +08:00
feat: 证书页面增加上传证书功能 (#2735)
Refs https://github.com/1Panel-dev/1Panel/issues/1323
This commit is contained in:
@@ -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"
|
||||
@@ -12234,6 +12234,48 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/ssl/upload": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "上传 ssl",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Website SSL"
|
||||
],
|
||||
"summary": "Upload ssl",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.WebsiteSSLUpload"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"x-panel-log": {
|
||||
"BeforeFunctions": [],
|
||||
"bodyKeys": [
|
||||
"type"
|
||||
],
|
||||
"formatEN": "Upload ssl [type]",
|
||||
"formatZH": "上传 ssl [type]",
|
||||
"paramKeys": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/ssl/website/:websiteId": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -16861,19 +16903,10 @@ const docTemplate = `{
|
||||
"type": "boolean"
|
||||
},
|
||||
"sortBy": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"name",
|
||||
"size",
|
||||
"modTime"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"sortOrder": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"ascending",
|
||||
"descending"
|
||||
]
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -18160,6 +18193,33 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.WebsiteSSLUpload": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"certificate": {
|
||||
"type": "string"
|
||||
},
|
||||
"certificatePath": {
|
||||
"type": "string"
|
||||
},
|
||||
"privateKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"privateKeyPath": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"paste",
|
||||
"local"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.WebsiteSearch": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
@@ -12227,6 +12227,48 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/ssl/upload": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "上传 ssl",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Website SSL"
|
||||
],
|
||||
"summary": "Upload ssl",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.WebsiteSSLUpload"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"x-panel-log": {
|
||||
"BeforeFunctions": [],
|
||||
"bodyKeys": [
|
||||
"type"
|
||||
],
|
||||
"formatEN": "Upload ssl [type]",
|
||||
"formatZH": "上传 ssl [type]",
|
||||
"paramKeys": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/ssl/website/:websiteId": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -16854,19 +16896,10 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"sortBy": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"name",
|
||||
"size",
|
||||
"modTime"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"sortOrder": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"ascending",
|
||||
"descending"
|
||||
]
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -18153,6 +18186,33 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.WebsiteSSLUpload": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"certificate": {
|
||||
"type": "string"
|
||||
},
|
||||
"certificatePath": {
|
||||
"type": "string"
|
||||
},
|
||||
"privateKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"privateKeyPath": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"paste",
|
||||
"local"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.WebsiteSearch": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
@@ -2963,15 +2963,8 @@ definitions:
|
||||
showHidden:
|
||||
type: boolean
|
||||
sortBy:
|
||||
enum:
|
||||
- name
|
||||
- size
|
||||
- modTime
|
||||
type: string
|
||||
sortOrder:
|
||||
enum:
|
||||
- ascending
|
||||
- descending
|
||||
type: string
|
||||
type: object
|
||||
request.FilePathCheck:
|
||||
@@ -3838,6 +3831,24 @@ definitions:
|
||||
- autoRenew
|
||||
- id
|
||||
type: object
|
||||
request.WebsiteSSLUpload:
|
||||
properties:
|
||||
certificate:
|
||||
type: string
|
||||
certificatePath:
|
||||
type: string
|
||||
privateKey:
|
||||
type: string
|
||||
privateKeyPath:
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- paste
|
||||
- local
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
type: object
|
||||
request.WebsiteSearch:
|
||||
properties:
|
||||
name:
|
||||
@@ -12080,6 +12091,33 @@ paths:
|
||||
formatEN: Update ssl config [domain]
|
||||
formatZH: 更新证书设置 [domain]
|
||||
paramKeys: []
|
||||
/websites/ssl/upload:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 上传 ssl
|
||||
parameters:
|
||||
- description: request
|
||||
in: body
|
||||
name: request
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.WebsiteSSLUpload'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Upload ssl
|
||||
tags:
|
||||
- Website SSL
|
||||
x-panel-log:
|
||||
BeforeFunctions: []
|
||||
bodyKeys:
|
||||
- type
|
||||
formatEN: Upload ssl [type]
|
||||
formatZH: 上传 ssl [type]
|
||||
paramKeys: []
|
||||
/websites/ssl/website/:websiteId:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user