# config/initializers/carrierwave.rbCarrierWave::SanitizedFile.sanitize_regexp=/[^[:word:]\.\-\+]/# for JapaneseCarrierWave.configuredo|config|config.fog_credentials={provider:'AWS',aws_access_key_id:ENV[:access_key],aws_secret_access_key:ENV[:secret],region:ENV['s3_region']}config.fog_public=falseconfig.fog_directory=Settings.aws['s3_bucket']config.cache_storage=:fogconfig.fog_authenticated_url_expiration=1.minutes.to_iend