From bd541ea5eb09e03cb1d642e7d12206515237bb05 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 29 May 2025 11:48:12 +0100 Subject: [PATCH] community: Use new outlets feature for enabling SSL settings --- cookbooks/community/templates/default/web_only.yml.erb | 4 ++-- 1 file 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 b769cb23d..20dd62338 100644 --- a/cookbooks/community/templates/default/web_only.yml.erb +++ b/cookbooks/community/templates/default/web_only.yml.erb @@ -117,8 +117,8 @@ hooks: - sudo -H -E -u discourse cp /shared/feeds/update-feeds.atom public/update-feeds.atom after_ssl: - replace: - filename: "/etc/nginx/conf.d/discourse.conf" - from: /add_header.+/ + filename: "/etc/nginx/conf.d/outlets/server/20-https.conf" + from: /add_header Strict-Transport-Security.+/ to: | add_header Strict-Transport-Security 'max-age=63072000' always; ssl_stapling on; -- 2.39.5