Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. import com.grf.security.oauth.BaseOauthApi
  2. import com.custom.c1.data.configuration.C1ConfiguratorAuction
  3. println "LOADING c1 CATALINA CONFIG..."
  4. app.intranet.host = 'admin.brandexchange.centro.net'
  5. app.intranet.hostReporting = 'reporting.brandexchange.centro.net'
  6. app.intranet.baseDomain = "https://${app.intranet.host}"
  7. app.intranet.serverUrlReporting = "https://${app.intranet.hostReporting}" //all requests on this domain will use the intranet API calls
  8. app.extranet.host = 'brandexchange.centro.net'
  9. app.extranet.hostReporting = 'pub-reporting.brandexchange.centro.net' //all requests on this domain will use the extranet API calls
  10. app.extranet.baseDomain = "https://${app.extranet.host}"
  11. app.extranet.serverUrlReporting = "https://${app.extranet.hostReporting}" //all requests on this domain will use the intranet API calls
  12. oauth {
  13. providers {
  14. base_intranet {
  15. api = BaseOauthApi
  16. schemeName = 'https'
  17. host = app.intranet.host
  18. apiPath = '/api/1/centroReporting'
  19. key = 'grf'
  20. secret = 'bTz7R4hJKHgf7VN3HogCKwyificbTVMPnEqnsfKuAFfWdgebjsf3RsJfmiedA97b'
  21. callback = "${app.intranet.serverUrlReporting}/oauth/base_intranet/callback"
  22. hostReporting = app.intranet.hostReporting
  23. }
  24. base_extranet {
  25. api = BaseOauthApi
  26. host = app.extranet.host
  27. apiPath = '/api/1/centroReportingExtranet'
  28. key = 'grf'
  29. secret = 'bTz7R4hJKHgf7VN3HogCKwyificbTVMPnEqnsfKuAFfWdgebjsf3RsJfmiedA97b'
  30. callback = "${app.extranet.serverUrlReporting}/oauth/base_extranet/callback"
  31. hostReporting = app.extranet.hostReporting
  32. }
  33. }
  34. }
  35. grails {
  36. mail {
  37. host = "localhost"
  38. port = 25
  39. username = ""
  40. password = ""
  41. /*props = ["mail.smtp.starttls.enable":"true",
  42. "mail.smtp.port":"587"]*/
  43. }
  44. }
  45.  
  46. app.tomcat.portForLocal = 8081 // SET PORT FOR LOCAL REQUESTS, for example for screenshots
  47. app.authentification.customerToken = "1234567"
  48. app.intranet.workflowManagementUrl = app.intranet.baseDomain
  49.  
  50. app.intranet.reportMailFromAddress = 'brandexchange@centro.net'
  51. grails.mail.default.from = 'brandexchange@centro.net'
  52.  
  53. dataSource.url = "jdbc:mysql://127.0.0.1:3306/reporting?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull"
  54. dataSource.username = "reporting"
  55. dataSource.password = "1gp3Vt0trnTWw"
  56.  
  57. app.i18n.defaultLocale = new Locale('en');
  58.  
  59. app.phantomjs.path = "/usr/lib/phantomjs/phantomjs" // path to the phantomjs
  60. println app.intranet.host
  61. println "c1 CATALINA CONFIG LOADED..."
  62. data.configuratorClass = C1ConfiguratorAuction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement