Advertisement
Guest User

Untitled

a guest
May 8th, 2017
585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. // Number of previous passwords a user cannot reuse
  2. grails.plugin.springsecurity.disallowed.password.number = 2
  3.  
  4.  
  5. // Number of attemps allowed
  6. grails.plugin.springsecurity.badlogin.max.attemps = 3
  7.  
  8.  
  9. // Needed in LoginController.failAuth to recover username
  10. grails.plugin.springsecurity.apf.storeLastUsername = true
  11.  
  12.  
  13. // Days a password is active
  14. grails.plugin.springsecurity.password.validity.days = 90
  15.  
  16.  
  17. // Added by the Spring Security Core plugin:
  18. grails.plugin.springsecurity.userLookup.userDomainClassName = 'com.package.UserModel'
  19. grails.plugin.springsecurity.userLookup.authorityJoinClassName = 'com.package.UserRoleModel'
  20. grails.plugin.springsecurity.authority.className = 'com.package.RoleModel'
  21. grails.plugin.springsecurity.controllerAnnotations.staticRules = [
  22.         [pattern: '/',              access: ['permitAll']],
  23.         [pattern: '/error',         access: ['permitAll']],
  24.         [pattern: '/index',         access: ['permitAll']],
  25.         [pattern: '/register/**',   access: ['permitAll']],
  26.         [pattern: '/index.gsp',     access: ['permitAll']],
  27.         [pattern: '/shutdown',      access: ['permitAll']],
  28.         [pattern: '/assets/**',     access: ['permitAll']],
  29.         [pattern: '/**/js/**',      access: ['permitAll']],
  30.         [pattern: '/**/css/**',     access: ['permitAll']],
  31.         [pattern: '/**/images/**',  access: ['permitAll']],
  32.         [pattern: '/**/favicon.ico',access: ['permitAll']]
  33. ]
  34.  
  35.  
  36. grails.plugin.springsecurity.filterChain.chainMap = [
  37.         [pattern: '/assets/**', filters: 'none'],
  38.         [pattern: '/**/js/**', filters: 'none'],
  39.         [pattern: '/**/css/**', filters: 'none'],
  40.         [pattern: '/**/images/**', filters: 'none'],
  41.         [pattern: '/**/favicon.ico', filters: 'none'],
  42.         [pattern: '/**', filters: 'JOINED_FILTERS']
  43. ]
  44.  
  45.  
  46. grails.plugin.springsecurity.successHandler.defaultTargetUrl = "/home"
  47. grails.plugin.springsecurity.logout.postOnly = false
  48.  
  49.  
  50. aws {
  51.     domain = "s3.amazonaws.com"
  52.     accessKey = ""
  53.     secretKey = ""
  54.     bucketName = "repo-name"
  55.     timeout = 1000000000
  56.     startDelay = 1000000000
  57. }
  58.  
  59.  
  60. grails.plugin.awssdk.accessKey = ""
  61. grails.plugin.awssdk.secretKey = ""
  62. grails.plugin.awssdk.region = "eu-west-1"
  63. grails.plugin.awssdk.bucket = "repo-name"
  64.  
  65.  
  66. grails.controllers.upload.maxFileSize = 259129400
  67. grails.controllers.upload.maxRequestSize = 259129400
  68.  
  69.  
  70. grails {
  71.     mail {
  72.         host = "smtp.mandrillapp.com"
  73.         port = 587
  74.         username = "email@mail.com"
  75.         password = ""
  76.         props = ["mail.smtp.auth"                  : "true",
  77.                  "mail.smtp.starttls.enable"       : "true",
  78.                  "mail.smtp.socketFactory.port"    : "587",
  79.                  "mail.smtp.socketFactory.fallback": "false"]
  80.     }
  81. }
  82.  
  83.  
  84. grails.mail.default.from = "Name Surname <no-reply@email.com>"
  85. grails.plugin.springsecurity.ui.password.validationRegex ='^(?=.*\\d)(?=.*\\W+)(?![.\\n])(?=.*[A-Z])(?=.*[a-z]).*$'
  86. grails.plugin.springsecurity.ui.password.minLength=6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement