From 46e7938121929a4c5f4d15a295e74d8685b17b2b Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 1 Aug 2024 20:29:26 +0300 Subject: Get cookie key from the environment --- .envrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.envrc') diff --git a/.envrc b/.envrc index 31d3b45..4fafb8c 100644 --- a/.envrc +++ b/.envrc @@ -11,6 +11,6 @@ export BACKEND_URI="postgres://localhost?dbname=kittybox&host=/run/postgresql" export JOB_QUEUE_URI="postgres://localhost?dbname=kittybox&host=/run/postgresql" export BLOBSTORE_URI=file://./media-store export AUTH_STORE_URI=file://./auth-store -export COOKIE_SECRET=1234567890abcdefghijklmnopqrstuvwxyz +export COOKIE_KEY="$(dd if=/dev/urandom bs=64 count=1 status=none | base64)" # Add DATABASE_URL for `cargo test` invocations -export DATABASE_URL="postgres://localhost?dbname=kittybox&host=/run/postgresql" \ No newline at end of file +export DATABASE_URL="postgres://localhost?dbname=kittybox&host=/run/postgresql" -- cgit 1.4.1