mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-26 18:18:51 +01:00
Add privacy page, include Matomo in production
This commit is contained in:
@@ -11,4 +11,4 @@ Rails.application.config.assets.paths << Rails.root.join('node_modules')
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in the app/assets
|
||||
# folder are already added.
|
||||
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
||||
Rails.application.config.assets.precompile += %w( matomo.js )
|
||||
|
||||
@@ -7,11 +7,12 @@
|
||||
Rails.application.config.content_security_policy do |policy|
|
||||
policy.default_src :none
|
||||
policy.font_src :self, 'https://cdnjs.cloudflare.com'
|
||||
policy.img_src :self, 'https://cdnjs.cloudflare.com', 'https://projecteuler.net'
|
||||
policy.img_src :self, 'https://cdnjs.cloudflare.com', 'https://projecteuler.net', 'https://matomo.pfischbeck.de'
|
||||
policy.object_src :none
|
||||
policy.script_src :self, 'https://cdnjs.cloudflare.com'
|
||||
policy.script_src :self, 'https://cdnjs.cloudflare.com', 'https://matomo.pfischbeck.de'
|
||||
policy.style_src :self, :unsafe_inline
|
||||
policy.connect_src :self
|
||||
policy.frame_src 'https://matomo.pfischbeck.de'
|
||||
|
||||
# Specify URI for violation reports
|
||||
# policy.report_uri "/csp-violation-report-endpoint"
|
||||
|
||||
@@ -9,8 +9,9 @@ de:
|
||||
sign_in: 'Einloggen'
|
||||
sign_out: 'Ausloggen'
|
||||
info: "Info"
|
||||
privacy: "Datenschutz"
|
||||
legal: "Impressum"
|
||||
copyright: "Copyright-Informationen"
|
||||
copyright: "Copyright"
|
||||
bootstrap_html: 'Entworfen mit <a href="http://getbootstrap.com/">Bootstrap</a>'
|
||||
helpers:
|
||||
submit:
|
||||
|
||||
@@ -11,6 +11,7 @@ Rails.application.routes.draw do
|
||||
get 'about/info'
|
||||
get 'about/copyright'
|
||||
get 'about/legal'
|
||||
get 'about/privacy'
|
||||
|
||||
get 'about/roman_numerals'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user