ConfigInterface
interface ConfigInterface
Methods
Get all listeners
TODO: rename to getListenerByPort() and add validation (should be parse)
Upload configuration from file
No description
No description
Remove all routes and linked listeners
No description
No description
No description
Upload application to Nginx Unit
Upload application to Nginx Unit from file
No description
Get all upstreams
Upload all upstreams from file to Nginx Unit
Setup access log file
Return access log if exists
Remove access log
No description
Details
at line 18
array
getListeners()
Get all listeners
at line 26
Listener|null
getListenerByPort(int $port)
TODO: rename to getListenerByPort() and add validation (should be parse)
at line 34
bool
uploadListener(Listener $listener)
Upload Listener object to Nginx Unit server
at line 43
bool
uploadListenerFromFile(string $path, string $listener)
Upload configuration from file
at line 49
bool
removeListener(Listener $listener)
No description
at line 54
array
getRoutes()
No description
at line 60
Route|null
getRoute(string $routeName)
No description
at line 67
bool
removeRoutes()
Remove all routes and linked listeners
at line 73
bool
removeRoute(Route|string $route)
No description
at line 78
array
getApplications()
No description
at line 84
ApplicationAbstract|null
getApplication($applicationName)
No description
at line 93
bool
uploadApplication(ApplicationAbstract $application, string $name = '')
Upload application to Nginx Unit
at line 102
bool
uploadApplicationFromFile(string $path, string $name)
Upload application to Nginx Unit from file
at line 108
bool
removeApplication(ApplicationAbstract|string $application)
No description
at line 115
array
getUpstreams()
Get all upstreams
at line 124
bool
uploadUpstream(Upstream $upstream, string $name)
Upload Upstream object to nginx Unit
at line 132
bool
uploadUpstreamsFromFile(string $path)
Upload all upstreams from file to Nginx Unit
at line 141
bool
setAccessLog($path, $format = null)
Setup access log file
at line 148
AccessLog|null
getAccessLog()
Return access log if exists
at line 155
bool
removeAccessLog()
Remove access log
at line 160
array
toArray()
No description