From 314be821ae6d87cb040688af4d91e068cdb689e0 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 26 Mar 2026 14:28:49 +0000 Subject: [PATCH] Configure totp_domain for web site --- cookbooks/web/recipes/rails.rb | 1 + cookbooks/web/resources/rails_port.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cookbooks/web/recipes/rails.rb b/cookbooks/web/recipes/rails.rb index b994ee829..fa334a8be 100644 --- a/cookbooks/web/recipes/rails.rb +++ b/cookbooks/web/recipes/rails.rb @@ -142,6 +142,7 @@ rails_port "www.openstreetmap.org" do tracestrack_key web_passwords["tracestrack_key"] maptiler_key web_passwords["maptiler_key"] totp_key web_passwords["totp_key"] + totp_domain "openstreetmap.org" csp_enforce true trace_use_job_queue true diary_feed_delay 12 diff --git a/cookbooks/web/resources/rails_port.rb b/cookbooks/web/resources/rails_port.rb index 9211adbca..85c2e4281 100644 --- a/cookbooks/web/resources/rails_port.rb +++ b/cookbooks/web/resources/rails_port.rb @@ -74,6 +74,7 @@ property :thunderforest_key, String property :tracestrack_key, String property :maptiler_key, String property :totp_key, String +property :totp_domain, String property :csp_enforce, [true, false], :default => false property :csp_report_url, String property :matomo_configuration, Hash @@ -337,6 +338,7 @@ action :create do "tracestrack_key", "maptiler_key", "totp_key", + "totp_domain", "csp_enforce", "csp_report_url", "trace_use_job_queue", -- 2.39.5