Files
leanote/conf/app.conf

71 lines
1.7 KiB
Plaintext
Raw Normal View History

2014-05-07 13:06:24 +08:00
#------------------------
# leanote config
#------------------------
2015-04-08 14:01:24 +08:00
http.port=9000
2014-05-07 13:06:24 +08:00
2015-04-08 14:01:24 +08:00
site.url=http://localhost:9000 # or http://x.com:8080, http://www.xx.com:9000
2014-05-07 13:06:24 +08:00
# mongdb
db.host=localhost
db.port=27017
2015-09-07 22:20:53 +08:00
db.dbname=leanote # required
db.username= # if not exists, please leave it blank
db.password= # if not exists, please leave it blank
2014-05-09 15:03:06 +08:00
# or you can set the mongdb url for more complex needs the format is:
2014-05-07 13:06:24 +08:00
# mongodb://myuser:mypass@localhost:40001,otherhost:40001/mydb
2014-05-09 15:03:06 +08:00
# db.url=mongodb://root:root123@localhost:27017/leanote
2015-09-09 10:10:24 +08:00
db.urlEnv=${MONGODB_URL} # set url from env
2014-05-07 13:06:24 +08:00
2015-03-31 17:52:18 +08:00
# You Must Change It !! About Security!!
2015-06-15 19:13:00 +08:00
app.secret=V85ZzBeTnzpsHyjQX4zukbQ8qqtju9y2aDM55VWxAH9Qop19poekx3xkcDVvrD0y
2014-05-07 13:06:24 +08:00
#--------------------------------
# revel config
# for dev
#--------------------------------
2014-05-07 13:06:24 +08:00
app.name=leanote
http.addr=
http.ssl=false
cookie.httponly=false
cookie.prefix=LEANOTE
2015-01-09 00:13:20 +08:00
cookie.domain= # for share cookie with subdomain, 默认为空, 即不设置 不能设置为localhost, 要么就为空
2014-05-07 13:06:24 +08:00
cookie.secure=false
format.date=01/02/2006
format.datetime=01/02/2006 15:04
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=en
2015-06-15 19:13:00 +08:00
module.static=github.com/revel/modules/static
2014-05-07 13:06:24 +08:00
[dev]
mode.dev=true
results.pretty=true
watch=true
2015-06-15 19:13:00 +08:00
module.testrunner = github.com/revel/modules/testrunner
2014-05-07 13:06:24 +08:00
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 = %(app.name)s.log
log.error.output = %(app.name)s.log