From 4713309b0bc376557e7ac7d1eda1c74caa632535 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Tue, 9 Jan 2024 16:21:58 +0530 Subject: [PATCH] (docs) using /key/generate --- docs/my-website/docs/proxy/virtual_keys.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/my-website/docs/proxy/virtual_keys.md b/docs/my-website/docs/proxy/virtual_keys.md index a21fb703f77..36fa1c3e93f 100644 --- a/docs/my-website/docs/proxy/virtual_keys.md +++ b/docs/my-website/docs/proxy/virtual_keys.md @@ -15,6 +15,14 @@ Complete API documentation in the Swagger docs on your proxy base url (e.g. `htt Requirements: - Need to a postgres database (e.g. [Supabase](https://supabase.com/), [Neon](https://neon.tech/), etc) +- Set `DATABASE_URL=postgresql://:@:/` in your env + +(the proxy Dockerfile checks if the `DATABASE_URL` is set and then intializes the DB connection) + +```shell +export DATABASE_URL=postgresql://:@:/ +``` + You can then generate temporary keys by hitting the `/key/generate` endpoint.