fix: add missing error-log-path function to openresty plugin
Also ensure the access-log-path is passed into the plugin.
This commit is contained in:
@@ -47,6 +47,14 @@ fn-openresty-client-max-body-size() {
|
||||
fn-plugin-property-get-default "openresty" "$APP" "client-max-body-size" ""
|
||||
}
|
||||
|
||||
fn-openresty-error-log-path() {
|
||||
declare desc="get the configured error log path"
|
||||
declare APP="$1"
|
||||
local OPENRESTY_LOG_ROOT="$(fn-openresty-log-root)"
|
||||
|
||||
fn-plugin-property-get-default "openresty" "$APP" "error-log-path" "${OPENRESTY_LOG_ROOT}/${APP}-error.log"
|
||||
}
|
||||
|
||||
fn-openresty-get-http-includes-dir() {
|
||||
declare desc="get any include dir if available"
|
||||
declare APP="$1"
|
||||
|
||||
Reference in New Issue
Block a user