@RestController @RequestMapping(value="/system/nginx") public class NginxController extends BaseAgentController
projectInfoService| Constructor and Description |
|---|
NginxController() |
| Modifier and Type | Method and Description |
|---|---|
String |
close()
关闭nginx
|
String |
config()
获取配置信息
|
String |
delete(String path,
String name,
String type,
String from)
删除配置
|
String |
itemData(String path,
String name)
获取配置文件信息页面
|
String |
list(String whitePath,
String name,
String showAll)
配置列表
|
String |
open()
启动nginx
|
String |
reload()
重新加载
|
String |
status()
获取nginx状态
|
String |
tree()
nginx列表
|
String |
updateConf(String name)
修改nginx配置
|
String |
updateNgx(String name,
String whitePath,
String genre,
String context)
新增或修改配置
|
getNowUserName, getProjectInfoModel, getProjectInfoModel, getUserName, getWorkspaceId, tryGetProjectInfoModel, tryGetProjectInfoModelcheckPathSafe, pathSafeclearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile, resetInfogetApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes@RequestMapping(value="list_data.json",
method=POST,
produces="application/json")
public String list(String whitePath,
String name,
String showAll)
@RequestMapping(value="tree.json",
method=POST,
produces="application/json")
public String tree()
@RequestMapping(value="item_data",
method=POST,
produces="application/json")
public String itemData(String path,
String name)
path - 白名单路径name - 名称@RequestMapping(value="updateNgx",
method=POST,
produces="application/json")
public String updateNgx(String name,
String whitePath,
String genre,
String context)
name - 文件名whitePath - 白名单路径genre - 操作类型@RequestMapping(value="delete",
method=POST,
produces="application/json")
public String delete(String path,
String name,
String type,
String from)
path - 文件路径name - 文件名@RequestMapping(value="status",
method=POST,
produces="application/json")
public String status()
@RequestMapping(value="updateConf",
method=POST,
produces="application/json")
public String updateConf(@ValidatorItem(value=NOT_BLANK,msg="\u670d\u52a1\u540d\u79f0\u9519\u8bef")
String name)
name - 服务名@RequestMapping(value="config",
method=POST,
produces="application/json")
public String config()
@RequestMapping(value="open",
method=POST,
produces="application/json")
public String open()
@RequestMapping(value="close",
method=POST,
produces="application/json")
public String close()
@RequestMapping(value="reload",
method=POST,
produces="application/json")
public String reload()
Copyright © 2017–2022. All rights reserved.