mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-01 10:43:02 +08:00
30 lines
460 B
Markdown
30 lines
460 B
Markdown
## Nginx Plugin API
|
|
|
|
### POST /plugin/nginx/update_site/
|
|
|
|
Request:
|
|
|
|
{
|
|
"action": "create/update/delete",
|
|
// only when update and delete
|
|
"id": "525284cc2cebb6d0008b4567",
|
|
"type": "guide/json/nginx",
|
|
"config": <Object>
|
|
}
|
|
|
|
No Response.
|
|
|
|
Exception:
|
|
|
|
* not_in_service
|
|
* invalid_action
|
|
* invalid_type
|
|
* forbidden
|
|
|
|
* invalid_listen
|
|
* invalid_server_name
|
|
* invalid_index
|
|
* invalid_root
|
|
* invalid_location
|
|
* fastcgi_index
|