decidim: decidim.hacktivism.ch behind Caddy :9027

This commit is contained in:
Hernâni Marques 2026-08-17 15:31:10 +02:00
parent d519fb3c80
commit 609056615e
No known key found for this signature in database
GPG key ID: CB5738652768F7E9
24 changed files with 840 additions and 24 deletions

View file

@ -0,0 +1,14 @@
# frozen_string_literal: true
# hacktivism theme + host allowlist for decidim.hacktivism.ch
Rails.application.config.hosts << "decidim.hacktivism.ch"
Rails.application.config.hosts << "127.0.0.1"
Rails.application.config.hosts << "localhost"
if Rails.application.config.respond_to?(:assume_ssl=)
Rails.application.config.assume_ssl = true
end
Decidim.configure do |config|
config.enable_html_header_snippets = true if config.respond_to?(:enable_html_header_snippets=)
end