diff options
-rw-r--r-- | etc/nginx.conf | 65 | ||||
-rwxr-xr-x | libexec/git-notify | 8 | ||||
-rw-r--r-- | web/input/development.md | 4 | ||||
-rw-r--r-- | web/input/download.md | 4 | ||||
-rw-r--r-- | web/input/impressum.md | 2 | ||||
-rw-r--r-- | web/input/index.md | 20 |
6 files changed, 77 insertions, 26 deletions
diff --git a/etc/nginx.conf b/etc/nginx.conf index ee815d3..f8e61bf 100644 --- a/etc/nginx.conf +++ b/etc/nginx.conf | |||
@@ -19,10 +19,12 @@ ssl_dhparam /home/plugins/etc/ssl/dh-parameters.pem; | |||
19 | # Server definition for <https://www.monitoring-plugins.org/>. | 19 | # Server definition for <https://www.monitoring-plugins.org/>. |
20 | # | 20 | # |
21 | server { | 21 | server { |
22 | listen 130.133.8.40:443 ssl; | 22 | listen 130.133.8.40:443 ssl http2; |
23 | listen 130.133.8.40:444 ssl; | 23 | listen 130.133.8.40:444 ssl http2; |
24 | server_name 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; | ||
27 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; | ||
26 | 28 | ||
27 | # | 29 | # |
28 | # Downloads and attachments. | 30 | # Downloads and attachments. |
@@ -34,7 +36,10 @@ server { | |||
34 | } | 36 | } |
35 | root /home/plugins/web; | 37 | root /home/plugins/web; |
36 | fancyindex on; | 38 | fancyindex on; |
39 | fancyindex_default_sort date_desc; | ||
40 | fancyindex_name_length 40; | ||
37 | fancyindex_exact_size off; | 41 | fancyindex_exact_size off; |
42 | fancyindex_time_format "%F"; | ||
38 | fancyindex_css_href /resources/plugins.css; | 43 | fancyindex_css_href /resources/plugins.css; |
39 | fancyindex_ignore ^timestamp$; | 44 | fancyindex_ignore ^timestamp$; |
40 | } | 45 | } |
@@ -78,6 +83,15 @@ server { | |||
78 | } | 83 | } |
79 | 84 | ||
80 | # | 85 | # |
86 | # Rspamd. | ||
87 | # | ||
88 | location /rspamd/ { | ||
89 | proxy_pass http://127.0.0.1:11334/; | ||
90 | proxy_set_header Host $host; | ||
91 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
92 | } | ||
93 | |||
94 | # | ||
81 | # Redirects etc. | 95 | # Redirects etc. |
82 | # | 96 | # |
83 | location = /favicon.ico { | 97 | location = /favicon.ico { |
@@ -119,20 +133,55 @@ server { | |||
119 | } | 133 | } |
120 | 134 | ||
121 | # | 135 | # |
122 | # Redirect HTTP and all other domains to <https://www.monitoring-plugins.org/>. | 136 | # Redirect HTTP to <https://www.monitoring-plugins.org/>. Ditto for the test |
123 | # Ditto for the test instance. | 137 | # instance. |
124 | # | 138 | # |
125 | server { | 139 | server { |
126 | listen 130.133.8.40:80 default_server; | 140 | listen 130.133.8.40:80; |
127 | listen 130.133.8.40:443 default_server ssl; | 141 | server_name monitoring-plugins.org www.monitoring-plugins.org; |
142 | return 301 https://www.monitoring-plugins.org$request_uri; | ||
143 | } | ||
144 | |||
145 | server { | ||
146 | listen 130.133.8.40:81; | ||
147 | server_name monitoring-plugins.org www.monitoring-plugins.org; | ||
148 | return 301 https://www.monitoring-plugins.org:444$request_uri; | ||
149 | } | ||
150 | |||
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; | ||
128 | ssl_certificate /home/plugins/etc/ssl/monitoring-plugins.crt; | 157 | ssl_certificate /home/plugins/etc/ssl/monitoring-plugins.crt; |
129 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; | 158 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; |
130 | return 301 https://www.monitoring-plugins.org$request_uri; | 159 | return 301 https://www.monitoring-plugins.org$request_uri; |
131 | } | 160 | } |
161 | |||
132 | server { | 162 | server { |
133 | listen 130.133.8.40:81 default_server; | 163 | listen 130.133.8.40:444 ssl http2; |
134 | listen 130.133.8.40:444 default_server ssl; | 164 | server_name monitoring-plugins.org; |
135 | ssl_certificate /home/plugins/etc/ssl/monitoring-plugins.crt; | 165 | ssl_certificate /home/plugins/etc/ssl/monitoring-plugins.crt; |
136 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; | 166 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; |
137 | return 301 https://www.monitoring-plugins.org:444$request_uri; | 167 | return 301 https://www.monitoring-plugins.org:444$request_uri; |
138 | } | 168 | } |
169 | |||
170 | # | ||
171 | # Outdated domains. Can be deleted in 2026. | ||
172 | # | ||
173 | server { | ||
174 | listen 130.133.8.40:80 default_server; | ||
175 | listen 130.133.8.40:443 default_server ssl http2; | ||
176 | root /home/plugins/web-redirect; | ||
177 | ssl_certificate /home/plugins/etc/ssl/monitoring-plugins.crt; | ||
178 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; | ||
179 | } | ||
180 | |||
181 | server { | ||
182 | listen 130.133.8.40:81 default_server; | ||
183 | listen 130.133.8.40:444 default_server ssl http2; | ||
184 | root /home/plugins/web-redirect; | ||
185 | ssl_certificate /home/plugins/etc/ssl/monitoring-plugins.crt; | ||
186 | ssl_certificate_key /home/plugins/etc/ssl/monitoring-plugins.key; | ||
187 | } | ||
diff --git a/libexec/git-notify b/libexec/git-notify index 64da7c0..0e50229 100755 --- a/libexec/git-notify +++ b/libexec/git-notify | |||
@@ -34,9 +34,12 @@ | |||
34 | # | 34 | # |
35 | 35 | ||
36 | use strict; | 36 | use strict; |
37 | use Fcntl ':flock'; | 37 | use utf8; |
38 | use Encode qw(encode decode); | 38 | use feature qw(evalbytes unicode_eval unicode_strings); |
39 | use open qw(:std :utf8); | ||
39 | use Cwd 'realpath'; | 40 | use Cwd 'realpath'; |
41 | use Encode qw(encode); | ||
42 | use Fcntl ':flock'; | ||
40 | 43 | ||
41 | sub git_config($); | 44 | sub git_config($); |
42 | sub get_repos_name(); | 45 | sub get_repos_name(); |
@@ -515,7 +518,6 @@ sub send_commit_notice($$) | |||
515 | } | 518 | } |
516 | 519 | ||
517 | $subject .= truncate_str(${$info{"log"}}[0],50); | 520 | $subject .= truncate_str(${$info{"log"}}[0],50); |
518 | $_ = decode($info{"encoding"}, $_) for @notice; | ||
519 | mail_notification("$info{'committer_name'} <$from_address>", $commitlist_address, $subject, | 521 | mail_notification("$info{'committer_name'} <$from_address>", $commitlist_address, $subject, |
520 | "text/plain; charset=UTF-8", @notice); | 522 | "text/plain; charset=UTF-8", @notice); |
521 | } | 523 | } |
diff --git a/web/input/development.md b/web/input/development.md index bb3047d..67cd3a8 100644 --- a/web/input/development.md +++ b/web/input/development.md | |||
@@ -48,7 +48,7 @@ commands: | |||
48 | Also see our testing-related [development FAQs][dev-faq]. | 48 | Also see our testing-related [development FAQs][dev-faq]. |
49 | 49 | ||
50 | [team]: team.html "Monitoring Plugins Development Team" | 50 | [team]: team.html "Monitoring Plugins Development Team" |
51 | [nagios]: http://www.nagios.org/ "Nagios" | 51 | [nagios]: https://www.nagios.org/ "Nagios" |
52 | [github]: https://github.com/ "GitHub" | 52 | [github]: https://github.com/ "GitHub" |
53 | [fork]: https://help.github.com/articles/fork-a-repo "Fork Documentation" | 53 | [fork]: https://help.github.com/articles/fork-a-repo "Fork Documentation" |
54 | [pull]: https://help.github.com/articles/using-pull-requests "Pull Request Documentation" | 54 | [pull]: https://help.github.com/articles/using-pull-requests "Pull Request Documentation" |
@@ -56,7 +56,7 @@ Also see our testing-related [development FAQs][dev-faq]. | |||
56 | [git-ref]: doc/faq/git.html#references "Git References" | 56 | [git-ref]: doc/faq/git.html#references "Git References" |
57 | [master-img]: https://github.com/monitoring-plugins/monitoring-plugins/actions/workflows/test.yml/badge.svg?branch=master "Build Status master" | 57 | [master-img]: https://github.com/monitoring-plugins/monitoring-plugins/actions/workflows/test.yml/badge.svg?branch=master "Build Status master" |
58 | [coverity-img]: https://scan.coverity.com/projects/1435/badge.svg?flat=1 "Coverity Metric" | 58 | [coverity-img]: https://scan.coverity.com/projects/1435/badge.svg?flat=1 "Coverity Metric" |
59 | [libtap]: http://jc.ngo.org.uk/trac-bin/trac.cgi/wiki/LibTap "LibTap Homepage" | 59 | [libtap]: https://github.com/zorgnax/libtap "LibTap Homepage" |
60 | [dev-faq]: doc/faq/#development "Development FAQs" | 60 | [dev-faq]: doc/faq/#development "Development FAQs" |
61 | [github-actions]: https://docs.github.com/en/actions "GitHub Docs - GitHub Actions" | 61 | [github-actions]: https://docs.github.com/en/actions "GitHub Docs - GitHub Actions" |
62 | [github-ci-actions]: https://github.com/monitoring-plugins/monitoring-plugins/actions "Monitoring Plugins - Github Workflows" | 62 | [github-ci-actions]: https://github.com/monitoring-plugins/monitoring-plugins/actions "Monitoring Plugins - Github Workflows" |
diff --git a/web/input/download.md b/web/input/download.md index 75ad689..26424b4 100644 --- a/web/input/download.md +++ b/web/input/download.md | |||
@@ -37,7 +37,7 @@ directory][snapshot] of the [download area][download]. | |||
37 | 37 | ||
38 | The Monitoring::Plugin module is available from [CPAN][cpan]: | 38 | The Monitoring::Plugin module is available from [CPAN][cpan]: |
39 | 39 | ||
40 | * <http://search.cpan.org/dist/Monitoring-Plugin/> | 40 | * <https://metacpan.org/dist/Monitoring-Plugin> |
41 | 41 | ||
42 | ## NagiosMIB | 42 | ## NagiosMIB |
43 | 43 | ||
@@ -63,7 +63,7 @@ Old versions can be found [within][mib] the [download area][download]. | |||
63 | [download]: download/ "Download Area" | 63 | [download]: download/ "Download Area" |
64 | [snapshot]: download/snapshot/ "Snapshot Directory" | 64 | [snapshot]: download/snapshot/ "Snapshot Directory" |
65 | [mib]: download/mib/ "NagiosMIB Directory" | 65 | [mib]: download/mib/ "NagiosMIB Directory" |
66 | [cpan]: http://www.cpan.org/ "CPAN" | 66 | [cpan]: https://www.cpan.org/ "CPAN" |
67 | [tar1]: download/monitoring-plugins-{{plugins_release}}.tar.gz "Current Release Tarball" | 67 | [tar1]: download/monitoring-plugins-{{plugins_release}}.tar.gz "Current Release Tarball" |
68 | [sum1]: download/monitoring-plugins-{{plugins_release}}.tar.gz.sha1 "SHA-1 Sum" | 68 | [sum1]: download/monitoring-plugins-{{plugins_release}}.tar.gz.sha1 "SHA-1 Sum" |
69 | [tar2]: download/snapshot/monitoring-plugins-master.tar.gz "Current Snapshot Tarball" | 69 | [tar2]: download/snapshot/monitoring-plugins-master.tar.gz "Current Snapshot Tarball" |
diff --git a/web/input/impressum.md b/web/input/impressum.md index ac15f7a..0152f04 100644 --- a/web/input/impressum.md +++ b/web/input/impressum.md | |||
@@ -22,6 +22,6 @@ Germany | |||
22 | **Jabber:** | 22 | **Jabber:** |
23 |   holger@jabber.fu-berlin.de | 23 |   holger@jabber.fu-berlin.de |
24 | 24 | ||
25 | [law]: http://www.gesetze-im-internet.de/ddg/__5.html | 25 | [law]: https://www.gesetze-im-internet.de/ddg/__5.html |
26 | 26 | ||
27 | <!--% # vim:set filetype=markdown textwidth=78 joinspaces expandtab: # %--> | 27 | <!--% # vim:set filetype=markdown textwidth=78 joinspaces expandtab: # %--> |
diff --git a/web/input/index.md b/web/input/index.md index 6c18870..29a9285 100644 --- a/web/input/index.md +++ b/web/input/index.md | |||
@@ -33,25 +33,25 @@ monitoring products as well. | |||
33 | You can get the latest releases from the [download page][download]. | 33 | You can get the latest releases from the [download page][download]. |
34 | 34 | ||
35 | [team]: team.html "Monitoring Plugins Development Team" | 35 | [team]: team.html "Monitoring Plugins Development Team" |
36 | [icinga]: https://www.icinga.org/ "Icinga" | 36 | [icinga]: https://icinga.com/ "Icinga" |
37 | [naemon]: http://naemon.github.io/ "Naemon" | 37 | [naemon]: https://www.naemon.io/ "Naemon" |
38 | [nagios]: http://www.nagios.org/ "Nagios" | 38 | [nagios]: https://www.nagios.org/ "Nagios" |
39 | [sensu]: http://sensuapp.org/ "Sensu" | 39 | [sensu]: https://sensu.io/ "Sensu" |
40 | [shinken]: http://www.shinken-monitoring.org/ "Shinken" | 40 | [shinken]: https://github.com/shinken-solutions/shinken "Shinken" |
41 | [load]: doc/man/check_load.html "check_load" | 41 | [load]: doc/man/check_load.html "check_load" |
42 | [procs]: doc/man/check_procs.html "check_procs" | 42 | [procs]: doc/man/check_procs.html "check_procs" |
43 | [disk]: doc/man/check_disk.html "check_disk" | 43 | [disk]: doc/man/check_disk.html "check_disk" |
44 | [icmp]: doc/man/check_icmp.html "check_icmp" | 44 | [icmp]: doc/man/check_icmp.html "check_icmp" |
45 | [snmp]: doc/man/check_snmp.html "check_snmp" | 45 | [snmp]: doc/man/check_snmp.html "check_snmp" |
46 | [http]: doc/man/check_http.html "check_http" | 46 | [http]: doc/man/check_http.html "check_http" |
47 | [nagex]: http://exchange.nagios.org/directory/Plugins "Plugins on Nagios Exchange" | 47 | [nagex]: https://exchange.nagios.org/directory/Plugins "Plugins on Nagios Exchange" |
48 | [icnex]: https://exchange.icinga.org/dig/Plugins "Plugins on Icinga Exchange" | 48 | [icnex]: https://exchange.icinga.com/ "Icinga Exchange" |
49 | [module]: http://search.cpan.org/dist/Monitoring-Plugin/ "Monitoring::Plugin Module" | 49 | [module]: https://metacpan.org/dist/Monitoring-Plugin "Monitoring::Plugin Module" |
50 | [guidelines]: doc/guidelines.html "Monitoring Plugin Development Guidelines" | 50 | [guidelines]: doc/guidelines.html "Monitoring Plugin Development Guidelines" |
51 | [perl-plugins]: doc/writing-perl-plugins.html "Monitoring::Plugin Presentation" | 51 | [perl-plugins]: doc/writing-perl-plugins.html "Monitoring::Plugin Presentation" |
52 | [rename]: news/new-project-name.html "New Project Name" | 52 | [rename]: news/new-project-name.html "New Project Name" |
53 | [history]: http://www.nagios.org/about/history "Nagios (Plugins) History" | 53 | [history]: https://www.nagios.org/about/history/ "Nagios (Plugins) History" |
54 | [folks]: http://www.nagios.org/about/team "Nagios Team" | 54 | [folks]: https://www.nagios.org/team/ "Nagios Team" |
55 | [download]: download.html "Download" | 55 | [download]: download.html "Download" |
56 | 56 | ||
57 | <!--% # vim:set filetype=markdown textwidth=78 joinspaces expandtab: # %--> | 57 | <!--% # vim:set filetype=markdown textwidth=78 joinspaces expandtab: # %--> |