- API v2 Introduction
- 3rd Party API Integration
- Servers
- Manage
- Health & Monitoring
- Database
- Database Users
- System Users
- SSH Keys
- Cron Job
- Supervisor
- Services
- Security - Firewall
- Security - Fail2Ban
- SSH Configuration
- Server Activity Logs
- Settings - PHP
- Deployment Keys
- Settings - Auto Security Update
- Web Applications
- Static Data
Update PHP-FPM, NGiNX settings
PATCH
/v2/servers/{{serverId}}/webapps/{{webappId}}/settings/fpmnginx
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
publicPath
null
optional
stack
string
optional
stackMode
string
optional
clickjackingProtection
boolean
optional
xssProtection
boolean
optional
mimeSniffingProtection
boolean
optional
processManager
string
optional
processManagerMaxChildren
integer
optional
processManagerMaxRequests
integer
optional
openBasedir
string
optional
timezone
string
optional
disableFunctions
string
optional
maxExecutionTime
integer
optional
maxInputTime
integer
optional
maxInputVars
integer
optional
memoryLimit
integer
optional
postMaxSize
integer
optional
uploadMaxFilesize
integer
optional
sessionGcMaxlifetime
integer
optional
allowUrlFopen
boolean
optional
Example
{
"publicPath": null,
"stack": "nativenginx",
"stackMode": "development",
"clickjackingProtection": true,
"xssProtection": true,
"mimeSniffingProtection": true,
"processManager": "ondemand",
"processManagerMaxChildren": 50,
"processManagerMaxRequests": 501,
"openBasedir": "/home/myuser/webapps/testing:/var/lib/php/session:/tmp",
"timezone": "UTC",
"disableFunctions": "getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,ignore_user_abort,shell_exec,dl,set_time_limit,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server",
"maxExecutionTime": 31,
"maxInputTime": 60,
"maxInputVars": 1000,
"memoryLimit": 256,
"postMaxSize": 256,
"uploadMaxFilesize": 256,
"sessionGcMaxlifetime": 1440,
"allowUrlFopen": true
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH 'https://manage.runcloud.io/api/v2/servers/{{serverId}}/webapps/{{webappId}}/settings/fpmnginx' \
--header 'Content-Type: application/json' \
--data-raw '{
"publicPath": null,
"stack": "nativenginx",
"stackMode": "development",
"clickjackingProtection": true,
"xssProtection": true,
"mimeSniffingProtection": true,
"processManager": "ondemand",
"processManagerMaxChildren": 50,
"processManagerMaxRequests": 501,
"openBasedir": "/home/myuser/webapps/testing:/var/lib/php/session:/tmp",
"timezone": "UTC",
"disableFunctions": "getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,ignore_user_abort,shell_exec,dl,set_time_limit,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server",
"maxExecutionTime": 31,
"maxInputTime": 60,
"maxInputVars": 1000,
"memoryLimit": 256,
"postMaxSize": 256,
"uploadMaxFilesize": 256,
"sessionGcMaxlifetime": 1440,
"allowUrlFopen": true
}'
Responses
🟢200Success
application/json
Body
id
integer
required
server_user_id
integer
required
name
string
required
rootPath
string
required
publicPath
string
required
phpVersion
string
required
stack
string
required
stackMode
string
required
type
string
required
defaultApp
boolean
required
alias
null
required
pullKey1
string
required
pullKey2
string
required
created_at
string
required
setting
object
required
disableFunctions
string
required
timezone
string
required
maxExecutionTime
integer
required
maxInputTime
integer
required
maxInputVars
integer
required
memoryLimit
integer
required
postMaxSize
integer
required
uploadMaxFilesize
integer
required
allowUrlFopen
boolean
required
sessionGcMaxlifetime
integer
required
processManager
string
required
processManagerStartServers
integer
required
processManagerMinSpareServers
integer
required
processManagerMaxSpareServers
integer
required
processManagerMaxChildren
integer
required
processManagerMaxRequests
integer
required
openBasedir
string
required
clickjackingProtection
boolean
required
xssProtection
boolean
required
mimeSniffingProtection
boolean
required
Example
{
"id": 646,
"server_user_id": 1647,
"name": "app-schimmel",
"rootPath": "/home/runcloud/webapps/app-schimmel",
"publicPath": "/home/runcloud/webapps/app-schimmel",
"phpVersion": "php82rc",
"stack": "nativenginx",
"stackMode": "development",
"type": "wordpress",
"defaultApp": true,
"alias": null,
"pullKey1": "rlNDkqV0UpEISUgM526HUEJJ1720508533",
"pullKey2": "Zs3lqh0HymHDA6cs5uLHRZNVJPMVJTox",
"created_at": "2024-07-09 07:02:13",
"setting": {
"disableFunctions": "getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,shell_exec,dl,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server",
"timezone": "UTC",
"maxExecutionTime": 31,
"maxInputTime": 60,
"maxInputVars": 1000,
"memoryLimit": 256,
"postMaxSize": 256,
"uploadMaxFilesize": 256,
"allowUrlFopen": true,
"sessionGcMaxlifetime": 1440,
"processManager": "ondemand",
"processManagerStartServers": 1,
"processManagerMinSpareServers": 1,
"processManagerMaxSpareServers": 1,
"processManagerMaxChildren": 50,
"processManagerMaxRequests": 501,
"openBasedir": "/home/myuser/webapps/testing:/var/lib/php/session:/tmp",
"clickjackingProtection": true,
"xssProtection": true,
"mimeSniffingProtection": true
}
}
Modified at 2024-09-04 09:15:51