craftcms / craft

Composer starter project for Craft CMS.
https://craftcms.com
BSD Zero Clause License
188 stars 91 forks source link

Security Key isn’t optional #23

Closed carlcs closed 6 years ago

carlcs commented 6 years ago

It would be nice if there was a note in the .env and config/general.php files that setting a security isn’t optional.

brandonkelly commented 6 years ago

There’s this in the installation instructions:

Step 3: Set a Security Key

Each Craft project should have a unique security key, which is shared between each of the environments that the project in installed on. …

Everything in the .env file is required, except DB_PORT which already indicates that it’s optional by saying what value it will default to, so it might make things more confusing if all of a sudden just one of the values says that it’s required – unless we explicitly say that all of them are required, but that seems overkill.

carlcs commented 6 years ago

Ah, I was too late. :) I've been meaning to open this issue some days ago, before you added the sentence to the Install docs.