Initial commit.
This commit is contained in:
		
							
								
								
									
										12
									
								
								config/initializers/assets.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								config/initializers/assets.rb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
# Be sure to restart your server when you modify this file.
 | 
			
		||||
 | 
			
		||||
# Version of your assets, change this if you want to expire all your assets.
 | 
			
		||||
Rails.application.config.assets.version = "1.0"
 | 
			
		||||
 | 
			
		||||
# Add additional assets to the asset load path.
 | 
			
		||||
# Rails.application.config.assets.paths << Emoji.images_path
 | 
			
		||||
 | 
			
		||||
# 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 )
 | 
			
		||||
							
								
								
									
										25
									
								
								config/initializers/content_security_policy.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								config/initializers/content_security_policy.rb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
# Be sure to restart your server when you modify this file.
 | 
			
		||||
 | 
			
		||||
# Define an application-wide content security policy.
 | 
			
		||||
# See the Securing Rails Applications Guide for more information:
 | 
			
		||||
# https://guides.rubyonrails.org/security.html#content-security-policy-header
 | 
			
		||||
 | 
			
		||||
# Rails.application.configure do
 | 
			
		||||
#   config.content_security_policy do |policy|
 | 
			
		||||
#     policy.default_src :self, :https
 | 
			
		||||
#     policy.font_src    :self, :https, :data
 | 
			
		||||
#     policy.img_src     :self, :https, :data
 | 
			
		||||
#     policy.object_src  :none
 | 
			
		||||
#     policy.script_src  :self, :https
 | 
			
		||||
#     policy.style_src   :self, :https
 | 
			
		||||
#     # Specify URI for violation reports
 | 
			
		||||
#     # policy.report_uri "/csp-violation-report-endpoint"
 | 
			
		||||
#   end
 | 
			
		||||
#
 | 
			
		||||
#   # Generate session nonces for permitted importmap, inline scripts, and inline styles.
 | 
			
		||||
#   config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
 | 
			
		||||
#   config.content_security_policy_nonce_directives = %w(script-src style-src)
 | 
			
		||||
#
 | 
			
		||||
#   # Report violations without enforcing the policy.
 | 
			
		||||
#   # config.content_security_policy_report_only = true
 | 
			
		||||
# end
 | 
			
		||||
							
								
								
									
										8
									
								
								config/initializers/filter_parameter_logging.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								config/initializers/filter_parameter_logging.rb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
# Be sure to restart your server when you modify this file.
 | 
			
		||||
 | 
			
		||||
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
 | 
			
		||||
# Use this to limit dissemination of sensitive information.
 | 
			
		||||
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
 | 
			
		||||
Rails.application.config.filter_parameters += [
 | 
			
		||||
  :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
 | 
			
		||||
]
 | 
			
		||||
							
								
								
									
										16
									
								
								config/initializers/inflections.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								config/initializers/inflections.rb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
# Be sure to restart your server when you modify this file.
 | 
			
		||||
 | 
			
		||||
# Add new inflection rules using the following format. Inflections
 | 
			
		||||
# are locale specific, and you may define rules for as many different
 | 
			
		||||
# locales as you wish. All of these examples are active by default:
 | 
			
		||||
# ActiveSupport::Inflector.inflections(:en) do |inflect|
 | 
			
		||||
#   inflect.plural /^(ox)$/i, "\\1en"
 | 
			
		||||
#   inflect.singular /^(ox)en/i, "\\1"
 | 
			
		||||
#   inflect.irregular "person", "people"
 | 
			
		||||
#   inflect.uncountable %w( fish sheep )
 | 
			
		||||
# end
 | 
			
		||||
 | 
			
		||||
# These inflection rules are supported but not enabled by default:
 | 
			
		||||
# ActiveSupport::Inflector.inflections(:en) do |inflect|
 | 
			
		||||
#   inflect.acronym "RESTful"
 | 
			
		||||
# end
 | 
			
		||||
							
								
								
									
										13
									
								
								config/initializers/permissions_policy.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								config/initializers/permissions_policy.rb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
# Be sure to restart your server when you modify this file.
 | 
			
		||||
 | 
			
		||||
# Define an application-wide HTTP permissions policy. For further
 | 
			
		||||
# information see: https://developers.google.com/web/updates/2018/06/feature-policy
 | 
			
		||||
 | 
			
		||||
# Rails.application.config.permissions_policy do |policy|
 | 
			
		||||
#   policy.camera      :none
 | 
			
		||||
#   policy.gyroscope   :none
 | 
			
		||||
#   policy.microphone  :none
 | 
			
		||||
#   policy.usb         :none
 | 
			
		||||
#   policy.fullscreen  :self
 | 
			
		||||
#   policy.payment     :self, "https://secure.example.com"
 | 
			
		||||
# end
 | 
			
		||||
		Reference in New Issue
	
	Block a user