Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Environment configuration folder created automatically on server for security.yaml

Started by Filippo Masoni 5 years ago · 2 replies · 595 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 complanar, 6 days ago
6 140 16 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 52 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago