Skip to content

Commit cdb09c4

Browse files
committed
Do not set HTTP Host header if no app domains are found
1 parent ce36776 commit cdb09c4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

functions

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ monit_reload() {
4949
}
5050

5151
monit_enable() {
52-
5352
config_set --no-restart "$1" "MONIT_ENABLED=true"
5453
}
5554

templates/monit.sigil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ check host {{ .APP }} with address {{ .ADDRESS }}
44
if failed
55
port {{ default 80 .PORT }}
66
protocol {{ .SCHEME }}
7-
http headers [Host: {{ .DOMAIN }}]
7+
{{ if .DOMAIN }}http headers [Host: {{ .DOMAIN }}]{{ end }}
88
request "{{ default "/" .REQUEST }}"
99
{{ if .CONTENT }}content = "{{ .CONTENT }}"{{ end }}
1010
for {{ default 2 .RESTART_CYCLES }} cycles

0 commit comments

Comments
 (0)