你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Dapr interface

容器应用 Dapr 配置。

属性

appId

Dapr 应用程序标识符

appPort

告知 Dapr 应用程序正在侦听哪个端口

appProtocol

告知 Dapr 你的应用程序所使用的协议。 有效选项为 http 和 grpc。 默认值为 http

enableApiLogging

为 Dapr 挎斗启用 API 日志记录

enabled

指示是否启用 Dapr 侧车的布尔值

httpMaxRequestSize

增加请求正文 http 和 grpc 服务器参数的最大大小(以 MB 为单位)以处理大文件的上传。 默认值为 4 MB。

httpReadBufferSize

发送多 KB 标头时要处理的 http 标头读取缓冲区的最大 Dapr 大小(以 KB 为单位)。 默认值为 65KB。

logLevel

设置 Dapr 挎斗的日志级别。 允许的值为 debug、info、warn、error。 默认值为 info。

属性详细信息

appId

Dapr 应用程序标识符

appId?: string

属性值

string

appPort

告知 Dapr 应用程序正在侦听哪个端口

appPort?: number

属性值

number

appProtocol

告知 Dapr 你的应用程序所使用的协议。 有效选项为 http 和 grpc。 默认值为 http

appProtocol?: string

属性值

string

enableApiLogging

为 Dapr 挎斗启用 API 日志记录

enableApiLogging?: boolean

属性值

boolean

enabled

指示是否启用 Dapr 侧车的布尔值

enabled?: boolean

属性值

boolean

httpMaxRequestSize

增加请求正文 http 和 grpc 服务器参数的最大大小(以 MB 为单位)以处理大文件的上传。 默认值为 4 MB。

httpMaxRequestSize?: number

属性值

number

httpReadBufferSize

发送多 KB 标头时要处理的 http 标头读取缓冲区的最大 Dapr 大小(以 KB 为单位)。 默认值为 65KB。

httpReadBufferSize?: number

属性值

number

logLevel

设置 Dapr 挎斗的日志级别。 允许的值为 debug、info、warn、error。 默认值为 info。

logLevel?: string

属性值

string