about summary refs log tree commit diff
path: root/.envrc
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-08-17 16:56:04 +0300
committerVika <vika@fireburn.ru>2024-08-18 00:12:56 +0300
commit298c8c885350d7de581f927f1d196a797627bd9f (patch)
treee432056930bec0c1702dc737a825bbfac7dfb987 /.envrc
parentaf991d651ff6a7fca7a0ecafd28a27bda15f884f (diff)
Don't verify TLS certificates when fetching things in dev
When testing things, I don't test TLS verification, that's what
reqwest unit tests should exist for. I test my things, and some of my
things assume some form of TLS. I don't need it to be valid TLS, I
need it to be TLS so I can use the `https://` links in dev.
Diffstat (limited to '.envrc')
-rw-r--r--.envrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/.envrc b/.envrc
index 4fafb8c..f5e765d 100644
--- a/.envrc
+++ b/.envrc
@@ -11,6 +11,8 @@ 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_KEY="$(dd if=/dev/urandom bs=64 count=1 status=none | base64)"
+export COOKIE_KEY="$(dd if=/dev/urandom bs=128 count=1 status=none | base64 -w0)"
 # Add DATABASE_URL for `cargo test` invocations
 export DATABASE_URL="postgres://localhost?dbname=kittybox&host=/run/postgresql"
+# Don't verify TLS certificates (works only on debug builds, don't get any funny thoughts)
+export KITTYBOX_DANGER_INSECURE_TLS=1