Commit aae67ebfcb86bd85ee5827fbce1b1156a649365d
1 parent
45d260fd
Exists in
master
and in
65 other branches
Fix mailman reverse proxy
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
cookbooks/reverse_proxy/recipes/mailman.rb
@@ -12,7 +12,7 @@ cookbook_file "/etc/nginx/#{node['config']['lists_hostname']}.key" do | @@ -12,7 +12,7 @@ cookbook_file "/etc/nginx/#{node['config']['lists_hostname']}.key" do | ||
12 | notifies :restart, 'service[nginx]' | 12 | notifies :restart, 'service[nginx]' |
13 | end | 13 | end |
14 | 14 | ||
15 | -template '/etc/nginx/conf.d/reverse_proxy.conf' do | 15 | +template '/etc/nginx/conf.d/mailman_reverse_proxy.conf' do |
16 | owner 'root' | 16 | owner 'root' |
17 | group 'root' | 17 | group 'root' |
18 | mode 0644 | 18 | mode 0644 |
test/reverse_proxy_test.sh
@@ -10,8 +10,8 @@ test_reverse_proxy_to_colab() { | @@ -10,8 +10,8 @@ test_reverse_proxy_to_colab() { | ||
10 | assertEquals "<title>Home - Colab</title>" "$title" | 10 | assertEquals "<title>Home - Colab</title>" "$title" |
11 | } | 11 | } |
12 | 12 | ||
13 | -test_redirect_http_to_mailman() { | ||
14 | - local title="$(curl --silent --fail --location --header 'Host: listas.softwarepublico.dev' --insecure https://$reverseproxy/ | grep -i '<title>')" | 13 | +test_reverse_proxy_for_mailman() { |
14 | + local title="$(curl --location --header 'Host: listas.softwarepublico.dev' --insecure https://$reverseproxy/ | grep -i '<title>')" | ||
15 | assertEquals "<TITLE>listas.softwarepublico.dev Mailing Lists</TITLE>" "$title" | 15 | assertEquals "<TITLE>listas.softwarepublico.dev Mailing Lists</TITLE>" "$title" |
16 | } | 16 | } |
17 | 17 |