Skip to content

Commit

Permalink
gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
wmui committed Jul 2, 2018
1 parent 2d2a879 commit 2f44ec8
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -14,10 +14,8 @@ dist
sw.*

# public
public/*

NOTE.md

build

server/config/*
Binary file added public/avatar.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions server/config/index.js
@@ -0,0 +1,40 @@
export default {
// 初始化管理员信息,后台可以修改
user: {
role: 'superAdmin',
username: 'q',
password: 'q',
email: 'qq22337383@gmail.com',
nickname: 'VueBlog',
motto: 'Never too old to learn',
avatar: 'avatar.png'
},
jwt: {
secret: 'vueblog'
},
// 数据库配置,默认即可
mongodb: {
host: '127.0.0.1',
database: 'vueblog',
port: 27017,
username: '',
password: ''
},
// github登录需要的密钥
githubConfig: {
githubClient: '',
githubSecret: '',
scope: 'user'
},
// SMTP 邮箱服务 只支持qq邮箱
emailConfig: {
user: '',
pass: ''
},
app: {
domain: '', // 如果需要部署到线上,必须填写域名,并且带协议地址
host: '127.0.0.1',
port: 3000,
routerBaseApi: 'api'
}
}

0 comments on commit 2f44ec8

Please sign in to comment.