Ensure monitoring for custom error pages

Fixes #3140
This commit is contained in:
Markus Padourek 2018-09-26 16:26:38 +02:00 committed by GitHub
parent f56e839134
commit fe219db231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -786,6 +786,12 @@ stream {
{{ else }} {{ else }}
proxy_pass http://upstream-default-backend; proxy_pass http://upstream-default-backend;
{{ end }} {{ end }}
{{ if not $all.DisableLua }}
log_by_lua_block {
monitor.call()
}
{{ end }}
} }
{{ end }} {{ end }}
{{ end }} {{ end }}