Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Environment configuration folder created automatically on server for security.yaml

Started by Filippo Masoni 5 years ago · 2 replies · 403 views
5 years ago

I recently realized Grav automatically created a bunch of environment folders under user/ on my production server. Nobody actually used the admin and saved configurations. All of the folders contain a config folder with just the security.yaml file with salt: ...

The names of these folders are from a bunch of websites and addresses linked in the site on various pages. How do these get created and how can I stop this? I've had grave for many years and never had this issue. I need to manually delete these folders in order to properly manage the repo on git.

5 years ago

@filo91, See issue Multiple security.yaml files #3432

The explanation from the devs:

But generally, every host/site should have its own salt as it is used for example for the form nonces and caching the content.

If you create folder /user/env/, the environments folders will be created inside that folder.

For more background information on 'environments' please read the thread.

5 years ago

Thank you for pointing that. I didn't really understand why it happens, but at least we can put everything under one folder which is a nice way to deal with it and exclude it from gitignore.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 57 15 hours ago
Support · by Anna, 3 days ago
2 65 18 hours ago
Support · by Justin Young, 18 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago