From 240d813c563ee1ac56298b36f96ddb1435d980d7 Mon Sep 17 00:00:00 2001 From: Van Waholtz Date: Thu, 24 Mar 2022 11:40:04 +0800 Subject: [PATCH] luci-app-frpc: add settings for log Signed-off-by: Van Waholtz (cherry picked from commit 0dbe3198bfe1feda71efddb62d6c198a69e0dcc1) --- .../luci-app-frpc/htdocs/luci-static/resources/view/frpc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js index ae9ea3acfa..f36db7e3e7 100644 --- a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js +++ b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js @@ -20,7 +20,9 @@ var commonConf = [ [form.Value, 'server_addr', _('Server address'), _('ServerAddr specifies the address of the server to connect to.
By default, this value is "0.0.0.0".'), {datatype: 'host'}], [form.Value, 'server_port', _('Server port'), _('ServerPort specifies the port to connect to the server on.
By default, this value is 7000.'), {datatype: 'port'}], [form.Value, 'http_proxy', _('HTTP proxy'), _('HttpProxy specifies a proxy address to connect to the server through. If this value is "", the server will be connected to directly.
By default, this value is read from the "http_proxy" environment variable.')], + [form.Value, 'log_file', _('Log file'), _('LogFile specifies a file where logs will be written to. This value will only be used if LogWay is set appropriately.
By default, this value is "console".')], [form.ListValue, 'log_level', _('Log level'), _('LogLevel specifies the minimum log level. Valid values are "trace", "debug", "info", "warn", and "error".
By default, this value is "info".'), {values: ['trace', 'debug', 'info', 'warn', 'error']}], + [form.Value, 'log_max_days', _('Log max days'), _('LogMaxDays specifies the maximum number of days to store log information before deletion. This is only used if LogWay == "file".
By default, this value is 0.'), {datatype: 'uinteger'}], [form.Flag, 'disable_log_color', _('Disable log color'), _('DisableLogColor disables log colors when LogWay == "console" when set to true.'), {datatype: 'bool', default: 'false'}], [form.Value, 'token', _('Token'), _('Token specifies the authorization token used to create keys to be sent to the server. The server must have a matching token for authorization to succeed.
By default, this value is "".')], [form.Value, 'admin_addr', _('Admin address'), _('AdminAddr specifies the address that the admin server binds to.
By default, this value is "127.0.0.1".'), {datatype: 'ipaddr'}], -- 2.30.2