Advertisement
Loucher

config

May 4th, 2016
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.49 KB | None | 0 0
  1. ---
  2. hibernate:
  3.     cache:
  4.         queries: false
  5.         use_second_level_cache: true
  6.         use_query_cache: false
  7.         region.factory_class: 'org.hibernate.cache.ehcache.EhCacheRegionFactory'
  8. dataSource:
  9.     pooled: true
  10.     jmxExport: true
  11.     driverClassName: org.postgresql.Driver
  12.     username: postgres
  13.     password: postgres
  14. environments:
  15.     development:
  16.         ldapServers:
  17.             d1:
  18.                 base: dc=stuba,dc=sk
  19.                 port: 10389
  20.         grails.plugin.springsecurity.ldap.context.server: ldap://localhost:10389
  21.         dataSource:
  22.             dbCreate: create
  23.             url: jdbc:postgresql://localhost:5432/dpfe
  24.         rabbitmq:
  25.             connections:
  26.                 defaultConnection:
  27.                     host: localhost
  28.                     username: guest
  29.                     password: guest
  30.     test:
  31.         dataSource:
  32.             dbCreate: update
  33.             url: jdbc:postgresql://localhost:5432/dpfe
  34.     production:
  35.         dataSource:
  36.             dbCreate: update
  37.             url: jdbc:postgresql://localhost:5432/dpfe
  38.             properties:
  39.                 jmxEnabled: true
  40.                 initialSize: 5
  41.                 maxActive: 50
  42.                 minIdle: 5
  43.                 maxIdle: 25
  44.                 maxWait: 10000
  45.                 maxAge: 600000
  46.                 timeBetweenEvictionRunsMillis: 5000
  47.                 minEvictableIdleTimeMillis: 60000
  48.                 validationQuery: SELECT 1
  49.                 validationQueryTimeout: 3
  50.                 validationInterval: 15000
  51.                 testOnBorrow: true
  52.                 testWhileIdle: true
  53.                 testOnReturn: false
  54.                 jdbcInterceptors: ConnectionState
  55.                 defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED
  56. ---
  57. ---
  58. grails:
  59.     profile: rest-api
  60.     codegen:
  61.         defaultPackage: sk.stuba.fei.dp
  62.     spring:
  63.         transactionManagement:
  64.             proxies: false
  65. info:
  66.     app:
  67.         name: '@info.app.name@'
  68.         version: '@info.app.version@'
  69.         grailsVersion: '@info.app.grailsVersion@'
  70. spring:
  71.     groovy:
  72.         template:
  73.             check-template-location: false
  74.  
  75. ---
  76. grails:
  77.     mime:
  78.         disable:
  79.             accept:
  80.                 header:
  81.                     userAgents:
  82.                        - Gecko
  83.                         - WebKit
  84.                         - Presto
  85.                         - Trident
  86.         types:
  87.             all: '*/*'
  88.             atom: application/atom+xml
  89.             css: text/css
  90.             csv: text/csv
  91.             form: application/x-www-form-urlencoded
  92.             html:
  93.              - text/html
  94.               - application/xhtml+xml
  95.             js: text/javascript
  96.             json:
  97.              - application/json
  98.               - text/json
  99.             multipartForm: multipart/form-data
  100.             rss: application/rss+xml
  101.             text: text/plain
  102.             hal:
  103.              - application/hal+json
  104.               - application/hal+xml
  105.             xml:
  106.              - text/xml
  107.               - application/xml
  108.     urlmapping:
  109.         cache:
  110.             maxsize: 1000
  111.     controllers:
  112.         defaultScope: singleton
  113.     converters:
  114.         encoding: UTF-8
  115.     databinding.dateFormats:
  116.      - "d.M.yyyy H:mm:ss"
  117.     resources.pattern: '/**'
  118.     plugin:
  119.         quartz.jdbcStore: false
  120.         springsecurity:
  121.             userLookup.userDomainClassName: 'sk.stuba.fei.dp.User'
  122.             rest.token.storage.gorm.tokenDomainClassName: 'sk.stuba.fei.dp.AuthenticationToken'
  123.             providerNames: ['ldapAuthProvider']
  124.             ldap:
  125.                 context:
  126.                     server: ldaps://ldap.stuba.sk:636
  127.                     anonymousReadOnly: true
  128.                 authorities:
  129.                     groupSearchBase: ou=People, DC=stuba, DC=sk
  130.                     retrieveGroupRoles: true
  131.                     attributesToReturn:
  132.                        - employeetype
  133.                         - cn
  134.                         - uisid
  135.                 search:
  136.                     filter: uid={0}
  137.                     base: ou=People,dc=stuba,dc=sk
  138.             filterChain.chainMap:
  139.                #Stateless chain
  140.                 - {pattern: '/api/**',filters: 'JOINED_FILTERS,-anonymousAuthenticationFilter,-exceptionTranslationFilter,-authenticationProcessingFilter,-securityContextPersistenceFilter,-rememberMeAuthenticationFilter'}
  141.                 #Traditional chain
  142.                 - {pattern: '/**', filters: 'none'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement