Correções para funcionamento do Docker

This commit is contained in:
2026-06-11 19:30:40 -03:00
parent 3b07e72d6e
commit b59fedec5c
25 changed files with 203 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
Devise.setup do |config|
config.mailer_sender = ENV.fetch('SMTP_USERNAME', 'noreply@gade.com.br')
require 'devise/orm/active_record'
config.case_insensitive_keys = [:email]
config.strip_whitespace_keys = [:email]
config.skip_session_storage = [:http_auth]
config.stretches = Rails.env.test? ? 1 : 12
config.reconfirmable = true
config.expire_all_remember_me_on_sign_out = true
config.password_length = 6..128
config.email_regexp = /\A[^@\s]+@[^@\s]+\z/
config.reset_password_within = 6.hours
config.sign_out_via = :delete
config.responder.error_status = :unprocessable_entity
config.responder.redirect_status = :see_other
end