mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-24 23:12:09 +08:00
feat: 增加伪静态设置 (#640)
This commit is contained in:
@@ -8715,6 +8715,90 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/rewrite": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "获取伪静态配置",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Website"
|
||||
],
|
||||
"summary": "Get rewrite conf",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.NginxRewriteReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/rewrite/update": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "更新伪静态配置",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Website"
|
||||
],
|
||||
"summary": "Update rewrite conf",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.NginxRewriteUpdate"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"x-panel-log": {
|
||||
"BeforeFuntions": [
|
||||
{
|
||||
"db": "websites",
|
||||
"input_colume": "id",
|
||||
"input_value": "websiteID",
|
||||
"isList": false,
|
||||
"output_colume": "primary_domain",
|
||||
"output_value": "domain"
|
||||
}
|
||||
],
|
||||
"bodyKeys": [
|
||||
"websiteID"
|
||||
],
|
||||
"formatEN": "Nginx conf rewrite update [domain]",
|
||||
"formatZH": "伪静态配置修改 [domain]",
|
||||
"paramKeys": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/search": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -11830,9 +11914,15 @@ const docTemplate = `{
|
||||
"proxy": {
|
||||
"type": "string"
|
||||
},
|
||||
"proxyType": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"rewrite": {
|
||||
"type": "string"
|
||||
},
|
||||
"runtimeID": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -12404,6 +12494,40 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.NginxRewriteReq": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name",
|
||||
"websiteId"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"websiteId": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.NginxRewriteUpdate": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"content",
|
||||
"name",
|
||||
"websiteId"
|
||||
],
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"websiteId": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.NginxScopeReq": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -13402,9 +13526,15 @@ const docTemplate = `{
|
||||
"proxy": {
|
||||
"type": "string"
|
||||
},
|
||||
"proxyType": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"rewrite": {
|
||||
"type": "string"
|
||||
},
|
||||
"runtimeID": {
|
||||
"type": "integer"
|
||||
},
|
||||
|
||||
@@ -8708,6 +8708,90 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/rewrite": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "获取伪静态配置",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Website"
|
||||
],
|
||||
"summary": "Get rewrite conf",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.NginxRewriteReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/rewrite/update": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "更新伪静态配置",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Website"
|
||||
],
|
||||
"summary": "Update rewrite conf",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.NginxRewriteUpdate"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"x-panel-log": {
|
||||
"BeforeFuntions": [
|
||||
{
|
||||
"db": "websites",
|
||||
"input_colume": "id",
|
||||
"input_value": "websiteID",
|
||||
"isList": false,
|
||||
"output_colume": "primary_domain",
|
||||
"output_value": "domain"
|
||||
}
|
||||
],
|
||||
"bodyKeys": [
|
||||
"websiteID"
|
||||
],
|
||||
"formatEN": "Nginx conf rewrite update [domain]",
|
||||
"formatZH": "伪静态配置修改 [domain]",
|
||||
"paramKeys": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/search": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -11823,9 +11907,15 @@
|
||||
"proxy": {
|
||||
"type": "string"
|
||||
},
|
||||
"proxyType": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"rewrite": {
|
||||
"type": "string"
|
||||
},
|
||||
"runtimeID": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -12397,6 +12487,40 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.NginxRewriteReq": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name",
|
||||
"websiteId"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"websiteId": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.NginxRewriteUpdate": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"content",
|
||||
"name",
|
||||
"websiteId"
|
||||
],
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"websiteId": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.NginxScopeReq": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -13395,9 +13519,15 @@
|
||||
"proxy": {
|
||||
"type": "string"
|
||||
},
|
||||
"proxyType": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"rewrite": {
|
||||
"type": "string"
|
||||
},
|
||||
"runtimeID": {
|
||||
"type": "integer"
|
||||
},
|
||||
|
||||
@@ -1750,8 +1750,12 @@ definitions:
|
||||
type: string
|
||||
proxy:
|
||||
type: string
|
||||
proxyType:
|
||||
type: string
|
||||
remark:
|
||||
type: string
|
||||
rewrite:
|
||||
type: string
|
||||
runtimeID:
|
||||
type: integer
|
||||
status:
|
||||
@@ -2133,6 +2137,29 @@ definitions:
|
||||
required:
|
||||
- websiteId
|
||||
type: object
|
||||
request.NginxRewriteReq:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
websiteId:
|
||||
type: integer
|
||||
required:
|
||||
- name
|
||||
- websiteId
|
||||
type: object
|
||||
request.NginxRewriteUpdate:
|
||||
properties:
|
||||
content:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
websiteId:
|
||||
type: integer
|
||||
required:
|
||||
- content
|
||||
- name
|
||||
- websiteId
|
||||
type: object
|
||||
request.NginxScopeReq:
|
||||
properties:
|
||||
scope:
|
||||
@@ -2799,8 +2826,12 @@ definitions:
|
||||
type: string
|
||||
proxy:
|
||||
type: string
|
||||
proxyType:
|
||||
type: string
|
||||
remark:
|
||||
type: string
|
||||
rewrite:
|
||||
type: string
|
||||
runtimeID:
|
||||
type: integer
|
||||
runtimeName:
|
||||
@@ -8398,6 +8429,59 @@ paths:
|
||||
formatEN: Nginx conf update [domain]
|
||||
formatZH: php 配置修改 [domain]
|
||||
paramKeys: []
|
||||
/websites/rewrite:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 获取伪静态配置
|
||||
parameters:
|
||||
- description: request
|
||||
in: body
|
||||
name: request
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.NginxRewriteReq'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Get rewrite conf
|
||||
tags:
|
||||
- Website
|
||||
/websites/rewrite/update:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 更新伪静态配置
|
||||
parameters:
|
||||
- description: request
|
||||
in: body
|
||||
name: request
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.NginxRewriteUpdate'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Update rewrite conf
|
||||
tags:
|
||||
- Website
|
||||
x-panel-log:
|
||||
BeforeFuntions:
|
||||
- db: websites
|
||||
input_colume: id
|
||||
input_value: websiteID
|
||||
isList: false
|
||||
output_colume: primary_domain
|
||||
output_value: domain
|
||||
bodyKeys:
|
||||
- websiteID
|
||||
formatEN: Nginx conf rewrite update [domain]
|
||||
formatZH: 伪静态配置修改 [domain]
|
||||
paramKeys: []
|
||||
/websites/search:
|
||||
post:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user