Update NGINX configuration

Updates the webservers configuration file for a tenant website in NGINX.


PATCH/api/servers/{server}/sites/{site}/tenants/{tenant}/nginx-configuration

Update NGINX configuration

Updates the NGINX configuration file for the specified tenant.

Required attributes

  • Name
    content
    Type
    string
    Description

    Containing the full configuration of the webserver file.

Request

PATCH
/api/servers/{server}/sites/{site}/tenants/{tenant}/nginx-configuration
curl -X PATCH "https://ploi.io/api/servers/{server}/sites/{site}/tenants/example.com/nginx-configuration" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "content": "...Complete webserver contents..."
  }'

Response

{
  "status": "ok",
  "message": "Don't forget to reload or restart NGINX after this call."
}