aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-03-22 13:40:53 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-03-22 13:40:53 +0100
commitde41aa4531df4515de93eba685cfeb03227a5d4e (patch)
tree9056a3d2a675f5c2b27a297f9308f145a1973baf
parentd6a9fd1c32f07b993cb8ecc3c1b7c22f7a0ce848 (diff)
downloadcamagru-de41aa4531df4515de93eba685cfeb03227a5d4e.tar.gz
camagru-de41aa4531df4515de93eba685cfeb03227a5d4e.zip
Add chmod 600 guidance for .env file in README
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9043f4b..b27e50f 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,12 @@ docker-compose up --build
## Environment variables
-Copy `.env.example` to `.env` and fill in the values:
+Copy `.env.example` to `.env` and fill in the values. Since it contains secrets (database passwords, app secret), restrict read access to your user only:
+
+```sh
+cp .env.example .env
+chmod 600 .env # owner-only read/write — prevents other users on the host from reading secrets
+```
| Variable | Purpose |
|----------|---------|