Skip to content

Commit

Permalink
Fix in nginx-plus.virtualserver.tmpl ApDosMonitor->ApDosMonitorURI (#…
Browse files Browse the repository at this point in the history
…2414)

Co-authored-by: = <=>
  • Loading branch information
pasmant authored Feb 24, 2022
1 parent c4d49db commit 9d6419e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/configs/version2/nginx-plus.virtualserver.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ server {
access_log {{ .ApDosAccessLogDest }} log_dos if=$loggable;
{{- end }}

{{- if .ApDosMonitor }}
{{- if .ApDosMonitorURI }}
{{- if or .ApDosMonitorProtocol .ApDosMonitorTimeout}}
app_protect_dos_monitor uri={{ .ApDosMonitor }}{{if .ApDosMonitorProtocol}} protocol={{.ApDosMonitorProtocol}}{{end}}{{if .ApDosMonitorTimeout}} timeout={{.ApDosMonitorTimeout}}{{end}};
app_protect_dos_monitor uri={{ .ApDosMonitorURI }}{{if .ApDosMonitorProtocol}} protocol={{.ApDosMonitorProtocol}}{{end}}{{if .ApDosMonitorTimeout}} timeout={{.ApDosMonitorTimeout}}{{end}};
{{- else}}
app_protect_dos_monitor "{{ .ApDosMonitor }}";
app_protect_dos_monitor "{{ .ApDosMonitorURI }}";
{{- end}}
{{- end}}

Expand Down

0 comments on commit 9d6419e

Please sign in to comment.