Rename piwik to matomo and merge configuration into settings
This commit is contained in:
parent
4f74a67f6c
commit
e9f62a8c30
13 changed files with 49 additions and 53 deletions
|
@ -1,5 +0,0 @@
|
|||
require "yaml"
|
||||
|
||||
if File.exist?(piwik_file = File.expand_path("../piwik.yml", __dir__))
|
||||
PIWIK = YAML.load_file(piwik_file)
|
||||
end
|
|
@ -18,9 +18,9 @@ csp_policy = {
|
|||
:report_uri => []
|
||||
}
|
||||
|
||||
csp_policy[:connect_src] << PIWIK["location"] if defined?(PIWIK)
|
||||
csp_policy[:img_src] << PIWIK["location"] if defined?(PIWIK)
|
||||
csp_policy[:script_src] << PIWIK["location"] if defined?(PIWIK)
|
||||
csp_policy[:connect_src] << Settings.matomo["location"] if defined?(Settings.matomo)
|
||||
csp_policy[:img_src] << Settings.matomo["location"] if defined?(Settings.matomo)
|
||||
csp_policy[:script_src] << Settings.matomo["location"] if defined?(Settings.matomo)
|
||||
|
||||
csp_policy[:img_src] << Settings.avatar_storage_url if Settings.key?(:avatar_storage_url)
|
||||
csp_policy[:img_src] << Settings.trace_image_storage_url if Settings.key?(:trace_image_storage_url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue