Improve S3 config
This commit is contained in:
		
							parent
							
								
									3ab193bc3f
								
							
						
					
					
						commit
						45230c56ab
					
				@ -7,4 +7,7 @@ if ENV['S3_ENABLED'] == 'true'
 | 
				
			|||||||
    secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY'),
 | 
					    secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY'),
 | 
				
			||||||
    s3_region: ENV.fetch('S3_REGION')
 | 
					    s3_region: ENV.fetch('S3_REGION')
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  Paperclip::Attachment.default_options[:url] = ':s3_domain_url'
 | 
				
			||||||
 | 
					  Paperclip::Attachment.default_options[:path] = '/:class/:attachment/:id_partition/:style/:filename'
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user