init
This commit is contained in:
76
conf/app-default.conf
Normal file
76
conf/app-default.conf
Normal file
@ -0,0 +1,76 @@
|
||||
#------------------------
|
||||
# leanote config
|
||||
#------------------------
|
||||
|
||||
http.port=80
|
||||
|
||||
site.url=http://leanote.com
|
||||
|
||||
# the administrator username
|
||||
adminUsername=admin
|
||||
|
||||
# mongdb
|
||||
db.host=localhost
|
||||
db.port=27017
|
||||
db.dbname=leanote # required
|
||||
db.username=root
|
||||
db.password=root123
|
||||
# or you can set the mongdb url
|
||||
# mongodb://myuser:mypass@localhost:40001,otherhost:40001/mydb
|
||||
db.url=mongodb://root:root123@localhost:27017/leanote
|
||||
|
||||
# email
|
||||
email.host=
|
||||
email.port=25
|
||||
email.username=
|
||||
email.password=
|
||||
|
||||
#--------------------------------
|
||||
# revel config
|
||||
# for dev
|
||||
#--------------------------------
|
||||
|
||||
app.name=leanote
|
||||
app.secret=V85ZzBeTnzpsHyjQX4zukbQ8qqtju9y2aDM55VWxAH9Qop19poekx3xkcDVvrD0y
|
||||
http.addr=
|
||||
http.ssl=false
|
||||
cookie.httponly=false
|
||||
cookie.prefix=LEANOTE
|
||||
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
|
||||
|
||||
module.static=github.com/revel/revel/modules/static
|
||||
|
||||
[dev]
|
||||
mode.dev=true
|
||||
results.pretty=true
|
||||
watch=true
|
||||
|
||||
module.testrunner = github.com/revel/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 = %(app.name)s.log
|
||||
log.error.output = %(app.name)s.log
|
55
conf/routes-default
Normal file
55
conf/routes-default
Normal file
@ -0,0 +1,55 @@
|
||||
# Routes
|
||||
# This file defines all application routes (Higher priority routes first)
|
||||
# ~~~~
|
||||
|
||||
module:testrunner
|
||||
|
||||
# Home is My Blog
|
||||
Get / Blog.Index
|
||||
GET /note Note.index
|
||||
# leanote home
|
||||
GET /index Index.index
|
||||
|
||||
GET /login Auth.Login
|
||||
POST /doLogin Auth.doLogin
|
||||
GET /logout Auth.Logout
|
||||
Get /demo Auth.Demo
|
||||
|
||||
Get /register Auth.Register
|
||||
POST /doRegister Auth.DoRegister
|
||||
|
||||
GET /findPassword/:token Auth.FindPassword2
|
||||
GET /findPassword Auth.FindPassword
|
||||
POST /doFindPassword Auth.DoFindPassword
|
||||
POST /findPasswordUpdate Auth.FindPasswordUpdate
|
||||
|
||||
# mobile
|
||||
GET /mobile Mobile.Index
|
||||
|
||||
# blog
|
||||
# /blog/view/:noteId必须要放在/blog/:userId...之前
|
||||
GET /blog/searchBlog/:userId Blog.SearchBlog
|
||||
GET /blog/set Blog.Set
|
||||
GET /blog/aboutMe/:userId Blog.AboutMe
|
||||
POST /blog/setUserBlogBase Blog.SetUserBlogBase
|
||||
POST /blog/setUserBlogComment Blog.SetUserBlogComment
|
||||
POST /blog/setUserBlogStyle Blog.SetUserBlogStyle
|
||||
GET /blog/view/:noteId Blog.View
|
||||
GET /blog/:userId Blog.Index
|
||||
GET /blog/:userId/:notebookId Blog.Index
|
||||
GET /blog Blog.Index
|
||||
|
||||
# Map static resources from the /app/public folder to the /public path
|
||||
GET /favicon.ico Static.Serve("public/images/favicon.ico")
|
||||
GET /public/*filepath Static.Serve("public")
|
||||
GET /js/*filepath Static.Serve("public/js")
|
||||
GET /images/*filepath Static.Serve("public/images")
|
||||
GET /img/*filepath Static.Serve("public/img")
|
||||
GET /css/*filepath Static.Serve("public/css")
|
||||
GET /fonts/*filepath Static.Serve("public/fonts")
|
||||
GET /tinymce/*filepath Static.Serve("public/tinymce")
|
||||
#GET /plugins/*filepath Static.Serve("public/tinymce/plugins")
|
||||
GET /upload/*filepath Static.Serve("public/upload")
|
||||
|
||||
# common
|
||||
* /:controller/:action :controller.:action
|
Reference in New Issue
Block a user