2021-03-26 14:19:53 +08:00
|
|
|
# Revel build section
|
|
|
|
# This section contains values that are not reloadable
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Comma delimited list of folders that are included with the package, or build commands
|
|
|
|
# If you want to not include folders within these ones prefix the folder with a . to make it hidden
|
2021-03-26 15:36:38 +08:00
|
|
|
package.folders = conf, public, messages, mongodb_backup, app/views
|
2021-03-26 14:19:53 +08:00
|
|
|
|
|
|
|
|
2014-05-07 13:06:24 +08:00
|
|
|
#------------------------
|
|
|
|
# leanote config
|
|
|
|
#------------------------
|
|
|
|
|
2018-03-08 10:49:55 +08:00
|
|
|
http.addr=0.0.0.0 # listen on all ip addresses
|
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
|
|
|
|
2015-09-17 18:52:10 +08:00
|
|
|
# admin username
|
|
|
|
adminUsername=admin
|
|
|
|
|
2014-05-07 13:06:24 +08:00
|
|
|
# mongdb
|
2015-11-22 22:33:07 +08:00
|
|
|
db.host=127.0.0.1
|
2014-05-07 13:06:24 +08:00
|
|
|
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
|
2015-10-07 00:28:35 +08:00
|
|
|
# or you can set the mongodb 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-10-07 00:29:29 +08:00
|
|
|
# db.urlEnv=${MONGODB_URL} # set url from env. eg. mongodb://root:root123@localhost:27017/leanote
|
2014-05-07 13:06:24 +08:00
|
|
|
|
2015-03-31 17:52:18 +08:00
|
|
|
# You Must Change It !! About Security!!
|
2016-05-25 17:33:38 +08:00
|
|
|
app.secret=V85ZzBeTnzpsHyjQX4zukbQ8qqtju9y2aDM55VWxAH9Qop19poekx3xkcDVvrD0y #
|
2014-05-07 13:06:24 +08:00
|
|
|
|
2015-01-08 23:29:24 +08:00
|
|
|
#--------------------------------
|
|
|
|
# revel config
|
|
|
|
# for dev
|
|
|
|
#--------------------------------
|
2014-05-07 13:06:24 +08:00
|
|
|
app.name=leanote
|
|
|
|
http.ssl=false
|
|
|
|
cookie.httponly=false
|
|
|
|
cookie.prefix=LEANOTE
|
2015-10-07 00:28:35 +08:00
|
|
|
cookie.domain= # for share cookie with sub-domain
|
2014-05-07 13:06:24 +08:00
|
|
|
cookie.secure=false
|
2017-02-18 20:01:26 +08:00
|
|
|
session.expires=3h # 3 hour. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
|
2015-11-28 15:38:43 +08:00
|
|
|
format.date=2006-01-02
|
|
|
|
format.datetime=2006-01-02 15:04:05 # 必须这样配置
|
2014-05-07 13:06:24 +08:00
|
|
|
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.
|
2016-03-19 14:05:09 +08:00
|
|
|
i18n.default_language=en-us
|
2014-05-07 13:06:24 +08:00
|
|
|
|
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-09-18 13:44:25 +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
|
2015-01-08 23:29:24 +08:00
|
|
|
log.error.output = %(app.name)s.log
|