Skip to content
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

Merged
merged 1 commit into from Mar 5, 2017
Merged

docs(quickstart): fix keys #511

merged 1 commit into from Mar 5, 2017

Conversation

atian25
Copy link
Member

@atian25 atian25 commented Mar 5, 2017

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

close #508

@mention-bot
Copy link

@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.

@atian25 atian25 mentioned this pull request Mar 5, 2017
@codecov
Copy link

codecov bot commented Mar 5, 2017

Codecov Report

Merging #511 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #511   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          25     25           
  Lines         615    615           
=====================================
  Hits          615    615

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 013a781...5f733dd. Read the comment docs.

```js
// config/config.default.js
// 切记:要改为自己的 key 值
exports.keys = '123456';
Copy link
Member

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

@atian25
Copy link
Member Author

atian25 commented Mar 5, 2017 via email

@popomore popomore merged commit 0465c3d into master Mar 5, 2017
@popomore popomore deleted the doc-quickstart-keys branch March 5, 2017 10:19
@fengmk2
Copy link
Member

fengmk2 commented Mar 5, 2017

这样写好危险,你会发现很多人到时候真的写了123456上线

@atian25
Copy link
Member Author

atian25 commented Mar 5, 2017

exports.keys = <自己写一个随机的安全串>; 这样?

@atian25 atian25 mentioned this pull request Mar 5, 2017
4 tasks
@bbb324
Copy link

bbb324 commented Aug 25, 2022

为什么要有这样一个随机字符串呢

@atian25
Copy link
Member Author

atian25 commented Aug 25, 2022

为什么要有这样一个随机字符串呢

因为要用来加签/加密你的 cookies,不能让别人知道

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

官网快速开始报错
5 participants