From aae67ebfcb86bd85ee5827fbce1b1156a649365d Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 3 Mar 2015 13:20:22 -0300 Subject: [PATCH] Fix mailman reverse proxy --- cookbooks/reverse_proxy/recipes/mailman.rb | 2 +- test/reverse_proxy_test.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbooks/reverse_proxy/recipes/mailman.rb b/cookbooks/reverse_proxy/recipes/mailman.rb index 38a87eb..a6bb9dd 100644 --- a/cookbooks/reverse_proxy/recipes/mailman.rb +++ b/cookbooks/reverse_proxy/recipes/mailman.rb @@ -12,7 +12,7 @@ cookbook_file "/etc/nginx/#{node['config']['lists_hostname']}.key" do notifies :restart, 'service[nginx]' end -template '/etc/nginx/conf.d/reverse_proxy.conf' do +template '/etc/nginx/conf.d/mailman_reverse_proxy.conf' do owner 'root' group 'root' mode 0644 diff --git a/test/reverse_proxy_test.sh b/test/reverse_proxy_test.sh index e51c59f..4362838 100644 --- a/test/reverse_proxy_test.sh +++ b/test/reverse_proxy_test.sh @@ -10,8 +10,8 @@ test_reverse_proxy_to_colab() { assertEquals "Home - Colab" "$title" } -test_redirect_http_to_mailman() { - local title="$(curl --silent --fail --location --header 'Host: listas.softwarepublico.dev' --insecure https://$reverseproxy/ | grep -i '')" +test_reverse_proxy_for_mailman() { + local title="$(curl --location --header 'Host: listas.softwarepublico.dev' --insecure https://$reverseproxy/ | grep -i '<title>')" assertEquals "<TITLE>listas.softwarepublico.dev Mailing Lists" "$title" } -- libgit2 0.21.2