From 31749bef002e93ce2a366da05f10cc1858db6025 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 26 Oct 2025 16:06:38 +0000 Subject: [PATCH] community: ensure acme redirect includes token --- cookbooks/community/templates/default/web_only.yml.erb | 2 +- test/integration/community/inspec/http_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/community/templates/default/web_only.yml.erb b/cookbooks/community/templates/default/web_only.yml.erb index a9d8288d0..10072fafc 100644 --- a/cookbooks/community/templates/default/web_only.yml.erb +++ b/cookbooks/community/templates/default/web_only.yml.erb @@ -128,4 +128,4 @@ run: from: /listen 80;/ to: | listen 80; - rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 permanent; + rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/\$1 permanent; diff --git a/test/integration/community/inspec/http_spec.rb b/test/integration/community/inspec/http_spec.rb index 76f7c5aef..fd017c164 100644 --- a/test/integration/community/inspec/http_spec.rb +++ b/test/integration/community/inspec/http_spec.rb @@ -12,5 +12,5 @@ describe http("http://localhost/.well-known/acme-challenge/abc", :headers => { "Host" => "community.openstreetmap.org" }, :allow_redirects => false) do its("status") { should cmp 301 } - its("headers.Location") { should cmp %r{^http://acme\.openstreetmap\.org/} } + its("headers.Location") { should cmp %r{^http://acme\.openstreetmap\.org/\.well-known/acme-challenge/abc} } end -- 2.39.5