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