Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Created September 26, 2019 16:27
Show Gist options
  • Save recursivecodes/f8103b0cec3c561e655df28458bb87fc to your computer and use it in GitHub Desktop.
Save recursivecodes/f8103b0cec3c561e655df28458bb87fc to your computer and use it in GitHub Desktop.
BlogController.groovy
BlogController(BlogService blogService, AmazonS3Service amazonS3Service) {
this.blogService = blogService
this.amazonS3Service = amazonS3Service
this.amazonS3Service.client.clientOptions.pathStyleAccess = true
this.amazonS3Service.client.clientOptions.chunkedEncodingDisabled = true
this.amazonS3Service.client.endpoint = "${grailsApplication.config.codes.recursive.aws.s3.namespace}.compat.objectstorage.${grailsApplication.config.codes.recursive.aws.s3.region}.oraclecloud.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment