Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Environment configuration folder created automatically on server for security.yaml

Started by Filippo Masoni 5 years ago · 2 replies · 834 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 TomW, 2 weeks ago
8 227 8 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago