跳到主要内容
版本:latest

save_config / get_config

获取和保存反向代理站点的 Nginx 配置(http_block / server_block)。

  • 路由POST /mod/proxy/com/{action}/stype

get_config — 获取配置

输入参数

参数名称必选类型描述
site_namestring站点名称

输出参数

参数名称类型描述
data.site_confstring完整 Nginx 配置文件内容
data.http_blockstringhttp 块自定义配置
data.server_blockstringserver 块自定义配置
data.ssl_confstringSSL 配置

save_config — 保存配置

输入参数

参数名称必选类型描述
site_namestring站点名称
conf_typestring配置类型:http_blockserver_block
bodystring配置内容

响应

{"code": 0, "status": true, "msg": "保存成功!"}