Files
adamantium/config/app.rb
2023-02-19 19:05:57 +11:00

17 lines
615 B
Ruby

# frozen_string_literal: true
require "hanami"
module Adamantium
class App < Hanami::App
config.actions.content_security_policy[:script_src] += " https://gist.github.com"
config.actions.content_security_policy[:script_src] += " *.dnitza.com"
config.actions.content_security_policy[:media_src] += " https://dnitza.com"
config.actions.content_security_policy[:script_src] += " https://unpkg.com/htmx.org@1.8.4"
config.actions.content_security_policy[:connect_src] += " https://stats.dnitza.com/api/event"
config.logger.level = :debug
config.logger.stream = "log/hanami.log"
end
end