Write an arbitrary panel file
danger_write_fileWrite any file the panel user can write, including vhost and nginx configs, bypassing site tool validations. Requires AAPANEL_ALLOW_DANGEROUS to be enabled.
Instructions
Write any file the panel user can write, including vhost and nginx configs. This bypasses every validation in the site tools, so the server refuses it unless AAPANEL_ALLOW_DANGEROUS is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Full file content. | |
| path | Yes | Absolute file path on the panel host. | |
| encoding | No | File encoding. | utf-8 |