Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.grf.security.oauth.BaseOauthApi
- import com.custom.c1.data.configuration.C1ConfiguratorAuction
- println "LOADING c1 CATALINA CONFIG..."
- app.intranet.host = 'admin.brandexchange.centro.net'
- app.intranet.hostReporting = 'reporting.brandexchange.centro.net'
- app.intranet.baseDomain = "https://${app.intranet.host}"
- app.intranet.serverUrlReporting = "https://${app.intranet.hostReporting}" //all requests on this domain will use the intranet API calls
- app.extranet.host = 'brandexchange.centro.net'
- app.extranet.hostReporting = 'pub-reporting.brandexchange.centro.net' //all requests on this domain will use the extranet API calls
- app.extranet.baseDomain = "https://${app.extranet.host}"
- app.extranet.serverUrlReporting = "https://${app.extranet.hostReporting}" //all requests on this domain will use the intranet API calls
- oauth {
- providers {
- base_intranet {
- api = BaseOauthApi
- schemeName = 'https'
- host = app.intranet.host
- apiPath = '/api/1/centroReporting'
- key = 'grf'
- secret = 'bTz7R4hJKHgf7VN3HogCKwyificbTVMPnEqnsfKuAFfWdgebjsf3RsJfmiedA97b'
- callback = "${app.intranet.serverUrlReporting}/oauth/base_intranet/callback"
- hostReporting = app.intranet.hostReporting
- }
- base_extranet {
- api = BaseOauthApi
- host = app.extranet.host
- apiPath = '/api/1/centroReportingExtranet'
- key = 'grf'
- secret = 'bTz7R4hJKHgf7VN3HogCKwyificbTVMPnEqnsfKuAFfWdgebjsf3RsJfmiedA97b'
- callback = "${app.extranet.serverUrlReporting}/oauth/base_extranet/callback"
- hostReporting = app.extranet.hostReporting
- }
- }
- }
- grails {
- mail {
- host = "localhost"
- port = 25
- username = ""
- password = ""
- /*props = ["mail.smtp.starttls.enable":"true",
- "mail.smtp.port":"587"]*/
- }
- }
- app.tomcat.portForLocal = 8081 // SET PORT FOR LOCAL REQUESTS, for example for screenshots
- app.authentification.customerToken = "1234567"
- app.intranet.workflowManagementUrl = app.intranet.baseDomain
- app.intranet.reportMailFromAddress = 'brandexchange@centro.net'
- grails.mail.default.from = 'brandexchange@centro.net'
- dataSource.url = "jdbc:mysql://127.0.0.1:3306/reporting?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull"
- dataSource.username = "reporting"
- dataSource.password = "1gp3Vt0trnTWw"
- app.i18n.defaultLocale = new Locale('en');
- app.phantomjs.path = "/usr/lib/phantomjs/phantomjs" // path to the phantomjs
- println app.intranet.host
- println "c1 CATALINA CONFIG LOADED..."
- data.configuratorClass = C1ConfiguratorAuction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement