diff options
-rw-r--r-- | etc/nginx.conf | 21 | ||||
-rwxr-xr-x | libexec/git-notify | 7 |
2 files changed, 24 insertions, 4 deletions
diff --git a/etc/nginx.conf b/etc/nginx.conf index 1a6687f..f8e61bf 100644 --- a/etc/nginx.conf +++ b/etc/nginx.conf | |||
@@ -21,7 +21,7 @@ ssl_dhparam /home/plugins/etc/ssl/dh-parameters.pem; | |||
21 | server { | 21 | server { |
22 | listen 130.133.8.40:443 ssl http2; | 22 | listen 130.133.8.40:443 ssl http2; |
23 | listen 130.133.8.40:444 ssl http2; | 23 | listen 130.133.8.40:444 ssl http2; |
24 | server_name monitoring-plugins.org www.monitoring-plugins.org; | 24 | server_name www.monitoring-plugins.org; |
25 | root /home/plugins/web/port-$server_port; | 25 | root /home/plugins/web/port-$server_port; |
26 | ssl_certificate /home/plugins/etc/ssl/monitoring-plugins.crt; | 26 | ssl_certificate /home/plugins/etc/ssl/monitoring-plugins.crt; |
27 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; | 27 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; |
@@ -149,6 +149,25 @@ server { | |||
149 | } | 149 | } |
150 | 150 | ||
151 | # | 151 | # |
152 | # Add "www" prefix. Ditto for the test instance. | ||
153 | # | ||
154 | server { | ||
155 | listen 130.133.8.40:443 ssl http2; | ||
156 | server_name monitoring-plugins.org; | ||
157 | ssl_certificate /home/plugins/etc/ssl/monitoring-plugins.crt; | ||
158 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; | ||
159 | return 301 https://www.monitoring-plugins.org$request_uri; | ||
160 | } | ||
161 | |||
162 | server { | ||
163 | listen 130.133.8.40:444 ssl http2; | ||
164 | server_name monitoring-plugins.org; | ||
165 | ssl_certificate /home/plugins/etc/ssl/monitoring-plugins.crt; | ||
166 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; | ||
167 | return 301 https://www.monitoring-plugins.org:444$request_uri; | ||
168 | } | ||
169 | |||
170 | # | ||
152 | # Outdated domains. Can be deleted in 2026. | 171 | # Outdated domains. Can be deleted in 2026. |
153 | # | 172 | # |
154 | server { | 173 | server { |
diff --git a/libexec/git-notify b/libexec/git-notify index 0e50229..228c7d6 100755 --- a/libexec/git-notify +++ b/libexec/git-notify | |||
@@ -4,6 +4,7 @@ | |||
4 | # | 4 | # |
5 | # Copyright 2005 Alexandre Julliard | 5 | # Copyright 2005 Alexandre Julliard |
6 | # Copyright 2009, 2013 Nagios Plugins Development Team | 6 | # Copyright 2009, 2013 Nagios Plugins Development Team |
7 | # Copyright 2024, 2025 Monitoring Plugins Development Team | ||
7 | # | 8 | # |
8 | # This program is free software; you can redistribute it and/or | 9 | # This program is free software; you can redistribute it and/or |
9 | # modify it under the terms of the GNU General Public License as | 10 | # modify it under the terms of the GNU General Public License as |
@@ -452,7 +453,7 @@ sub send_commit_notice($$) | |||
452 | my ($ref,$obj) = @_; | 453 | my ($ref,$obj) = @_; |
453 | my %info = get_object_info($obj); | 454 | my %info = get_object_info($obj); |
454 | my @notice = (); | 455 | my @notice = (); |
455 | my ($url,$subject,$obj_string); | 456 | my ($url,$from,$subject,$obj_string); |
456 | 457 | ||
457 | if ($gitweb_url) | 458 | if ($gitweb_url) |
458 | { | 459 | { |
@@ -518,8 +519,8 @@ sub send_commit_notice($$) | |||
518 | } | 519 | } |
519 | 520 | ||
520 | $subject .= truncate_str(${$info{"log"}}[0],50); | 521 | $subject .= truncate_str(${$info{"log"}}[0],50); |
521 | mail_notification("$info{'committer_name'} <$from_address>", $commitlist_address, $subject, | 522 | $from = encode("MIME-Q",$info{'committer_name'}) . " <$from_address>"; |
522 | "text/plain; charset=UTF-8", @notice); | 523 | mail_notification($from, $commitlist_address, $subject, "text/plain; charset=UTF-8", @notice); |
523 | } | 524 | } |
524 | 525 | ||
525 | # send a commit notice to the CIA server | 526 | # send a commit notice to the CIA server |