在 init 阶段,非法配置终止启动/提示报错的最佳实践

33 views
Skip to first unread message

Xudong Wang

unread,
Aug 23, 2021, 5:26:30 AM8/23/21
to openresty
比如 init 阶段发现某个必须的配置项为空,期望可以终止启动或者像 nginx -t 一样能够提示一些错误,而不只是在 nginx 的 error.log 里记一些日志。请问有办法吗?

Xudong Wang

unread,
Aug 23, 2021, 5:50:52 AM8/23/21
to openresty
Reply all
Reply to author
Forward
0 new messages