Configuration File

Anna Dowling 2018/02/23 05:10

The Configuration file for this project is called FootprintsConfig.groovy and is located in /usr/local/grails on the app handlers (apps1 and apps2). See below for config file parameters. Note, things like host names, database credentials differ across servers / environments.

grails.plugin.springsecurity.securityConfigType = 'InterceptUrlMap'
grails.plugin.springsecurity.interceptUrlMap = [
    [pattern: '/login/**', access: ['permitAll']],
    [pattern: '/logout/**', access: ['permitAll']],
    [pattern: '/**', access: ['ROLE_ADMIN']]
]

grails.plugin.springsecurity.logout.postOnly = false

log4j = {
  root {
    debug 'stdout', 'file'
  }
  info 'grails.app', 'com.errigal'
}

rabbitmq {
  credentials {
    username = 'rabbit_footprints'
    password = '#rabbit321!#'
    host = 'atclb1'
    virtualHost = 'footprints'
    handshakeTimeout = '20000'
  }
  queues {
    footprintsQueue = 'footprints_queue'
    ticketerInboundQueue = 'ticketer_inbound_queue'

    footprintsOutboundQueue = 'footprints_outbound_queue'
  }
  exchanges {
    ticketerAuditEventExchange='ticketer_audit_event_exchange_topic'

    footprintsExchange = 'footprints_exchange'
  }
  tags {
    footprintsTag = 'footprints'

    ticketAuditEventTag = 'com.errigal.ticketer.Ticket'
  }
  bindings {
    //In the Form "QUEUEMAME::EXCHANGENAME::TAG"
    //Incoming Message
    auditEventBinding1="${queues.footprintsOutboundQueue}::${exchanges.ticketerAuditEventExchange}::${tags.ticketAuditEventTag}"
  }
  consumer {
    name = 'footprints'
  }
  numberOfTriesBeforeFail = 1
  numberOfSecondsBetweenTries = 1
  numberOfSecondsToWaitForRabbitReconnect = 5
}

threadmanager {
  numberOfInboundThreads = 2
  numberOfOutboundThreads = 2
  nameOfInboundMessageThreads = 'InBoundMsgHandler'
  numberOfSecondsToWaitBeforeTimeoutForInbound = 20
  nameOfOutboundMessageThreads = 'OutBoundMsgHandler'
}

hibernate {
  cache.use_second_level_cache=false
  cache.use_query_cache=false
  cache.provider_class='org.hibernate.cache.EhCacheProvider'
}

dataSource.pooled = true
dataSource.dbCreate = "update"
dataSource.driverClassName = "com.mysql.jdbc.Driver"
dataSource.dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
dataSource.url = "jdbc:mysql://atc-rds-instance-master-1.c6hdidhzxqy5.us-east-1.rds.amazonaws.com:3306/footprints_component?useUnicode=yes&characterEncoding=UTF-8"
dataSource.username = "root"
dataSource.password = "ozzrules"