Advertisement
Guest User

leanote app conf

a guest
Nov 11th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. #------------------------
  2. # leanote config
  3. #------------------------
  4.  
  5. http.port=9000
  6.  
  7. site.url=http://localhost:9000 # or http://x.com:8080, http://www.xx.com:9000
  8.  
  9. # admin username
  10. adminUsername=admin
  11.  
  12. # mongdb
  13. db.host=mongo
  14. db.port=27017
  15. db.dbname=leanote # required
  16. db.username= # if not exists, please leave it blank
  17. db.password= # if not exists, please leave it blank
  18. # or you can set the mongodb url for more complex needs the format is:
  19. # mongodb://myuser:mypass@localhost:40001,otherhost:40001/mydb
  20. # db.url=mongodb://root:root123@localhost:27017/leanote
  21. # db.urlEnv=${MONGODB_URL} # set url from env. eg. mongodb://root:root123@localhost:27017/leanote
  22.  
  23. # You Must Change It !! About Security!!
  24. app.secret=V85ZzBeTnzpsHyjQX4zukbQ8qqtju9y2aDM55VWxAH9Qop19poekx3xkcDVvrD0y #
  25.  
  26. #--------------------------------
  27. # revel config
  28. # for dev
  29. #--------------------------------
  30. app.name=leanote
  31. http.addr=
  32. http.ssl=false
  33. cookie.httponly=false
  34. cookie.prefix=LEANOTE
  35. cookie.domain= # for share cookie with sub-domain
  36. cookie.secure=false
  37. session.expires=3h # 3 hour. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
  38. format.date=2006-01-02
  39. format.datetime=2006-01-02 15:04:05 # 必须这样配置
  40. results.chunked=false
  41.  
  42. log.trace.prefix = "TRACE "
  43. log.info.prefix = "INFO "
  44. log.warn.prefix = "WARN "
  45. log.error.prefix = "ERROR "
  46.  
  47. # The default language of this application.
  48. i18n.default_language=en-us
  49.  
  50. module.static=github.com/revel/modules/static
  51.  
  52. [dev]
  53. mode.dev=true
  54. results.pretty=true
  55. watch=true
  56.  
  57. module.testrunner = # github.com/revel/modules/testrunner
  58.  
  59. log.trace.output = stderr
  60. log.info.output = stderr
  61. log.warn.output = stderr
  62. log.error.output = stderr
  63.  
  64. [prod]
  65. mode.dev=false
  66. results.pretty=false
  67. watch=false
  68.  
  69. module.testrunner =
  70.  
  71. log.trace.output = off
  72. log.info.output = off
  73. log.warn.output = %(app.name)s.log
  74. log.error.output = %(app.name)s.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement