summaryrefslogtreecommitdiffstats
path: root/syntax/modules/healthcheck-upstream.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/modules/healthcheck-upstream.vim')
-rw-r--r--syntax/modules/healthcheck-upstream.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/syntax/modules/healthcheck-upstream.vim b/syntax/modules/healthcheck-upstream.vim
new file mode 100644
index 00000000..362324b6
--- /dev/null
+++ b/syntax/modules/healthcheck-upstream.vim
@@ -0,0 +1,15 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1
+
+" Health Checks Upstreams Module <https://www.nginx.com/resources/wiki/modules/healthcheck/>
+" Polls backends and if they respond with HTTP 200 + an optional request body, they are marked good. Otherwise, they are marked bad.
+syn keyword ngxDirectiveThirdParty healthcheck_enabled
+syn keyword ngxDirectiveThirdParty healthcheck_delay
+syn keyword ngxDirectiveThirdParty healthcheck_timeout
+syn keyword ngxDirectiveThirdParty healthcheck_failcount
+syn keyword ngxDirectiveThirdParty healthcheck_send
+syn keyword ngxDirectiveThirdParty healthcheck_expected
+syn keyword ngxDirectiveThirdParty healthcheck_buffer
+syn keyword ngxDirectiveThirdParty healthcheck_status
+
+
+endif