From bef9131b3b22f10118b32c2dd9d99280d560c198 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 30 Sep 2024 18:32:42 +0200 Subject: [PATCH] Generate APP_SECRET in .env.local when missing --- .env | 2 +- .env.setup.php | 16 ++++++++++++++++ composer.json | 1 + 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .env.setup.php diff --git a/.env b/.env index d8d8a65c3..dfafa58f7 100644 --- a/.env +++ b/.env @@ -16,7 +16,7 @@ ###> symfony/framework-bundle ### APP_ENV=dev -APP_SECRET=2ca64f8d83b9e89f5f19d672841d6bb8 +APP_SECRET=%generate(secret)% #TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 #TRUSTED_HOSTS='^(localhost|example\.com)$' ###< symfony/framework-bundle ### diff --git a/.env.setup.php b/.env.setup.php new file mode 100644 index 000000000..c25c27c31 --- /dev/null +++ b/.env.setup.php @@ -0,0 +1,16 @@ +