New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(quickstart): fix keys #511
Conversation
@atian25, thanks for your PR! By analyzing the history of the files in this pull request, we identified @pmq20, @monkindey and @missjing to be potential reviewers. |
Codecov Report
@@ Coverage Diff @@
## master #511 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 25 25
Lines 615 615
=====================================
Hits 615 615 Continue to review full report at Codecov.
|
```js | ||
// config/config.default.js | ||
// 切记:要改为自己的 key 值 | ||
exports.keys = '123456'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我的意思是在 egg-init egg-example --type=simple
的时候自动随机生成一个 keys
有啊,那边有 PR 了,这个也得改
发自我的 iPhone
… 在 2017年3月5日,15:00,fengmk2 ***@***.***> 写道:
@fengmk2 commented on this pull request.
In docs/source/zh-cn/intro/quickstart.md:
> @@ -82,6 +82,14 @@ module.exports = app => {
};
```
+加一个配置文件:
+
+```js
+// config/config.default.js
+// 切记:要改为自己的 key 值
+exports.keys = '123456';
我的意思是在 egg-init egg-example --type=simple 的时候自动随机生成一个 keys
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
这样写好危险,你会发现很多人到时候真的写了123456上线 |
|
为什么要有这样一个随机字符串呢 |
因为要用来加签/加密你的 cookies,不能让别人知道 |
Checklist
npm test
passesAffected core subsystem(s)
Description of change
close #508