Commit 2af42b15 authored by Andri Steiner's avatar Andri Steiner
Browse files

server/team#25 redirect monitoring requets to health check output

parent 9d17cf73
# local nginx configuration for default # local nginx configuration for default
# [INFO] https://docs.opsone.ch/managed-server-7/tag/website-advanced-nginx-website # [INFO] https://docs.opsone.ch/managed-server-7/tag/website-advanced-nginx-website
# monitoring does call / so we redirect monitoring
# requests to the healthcheck plugin output here
if ($http_user_agent ~ "monitoring-plugins") {
rewrite ^/$ /config/server/healthcheck~status;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment