Atualização Automatica dos numeros e correção de erro e falha de segurança

This commit is contained in:
2026-07-06 17:31:58 -03:00
parent 89b12fc91b
commit 96b7b03f57
16 changed files with 352 additions and 15 deletions

View File

@@ -5,7 +5,11 @@ Rails.application.configure do
config.eager_load = true
config.consider_all_requests_local = false
config.force_ssl = false # mude para true quando tiver HTTPS
# HTTPS obrigatório: redireciona HTTP→HTTPS e marca cookies como "Secure".
# assume_ssl faz o Rails confiar no TLS terminado no Cloudflare (que envia
# X-Forwarded-Proto=https), evitando loop de redirecionamento.
config.assume_ssl = true
config.force_ssl = true
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
config.log_tags = [:request_id]
config.logger = ActiveSupport::Logger.new(STDOUT).tap { |l| l.formatter = ::Logger::Formatter.new }