From 6b69339c79bd632b126acdbf92e7d9bf1bd45ac4 Mon Sep 17 00:00:00 2001 From: dal Date: Tue, 7 Jan 2025 15:11:53 -0700 Subject: [PATCH] Update environment configuration files - Expanded `.env.example` with additional environment variables for local development, including AWS credentials, database connection strings, and API keys. - Removed the `api/.env.example` file as its contents have been consolidated into the main `.env.example`. These changes enhance the local development setup by providing a comprehensive example of required environment variables. --- .env.example | 28 ++++++++++++++++++++++++---- api/.env.example | 9 --------- 2 files changed, 24 insertions(+), 13 deletions(-) delete mode 100644 api/.env.example diff --git a/.env.example b/.env.example index e9d4eaf9c..683a22c79 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,25 @@ -AWS_ACCESS_KEY_ID= -AWS_SECRET_ACCESS_KEY= -AWS_REGION= +AWS_ACCESS_KEY_ID=AKIA.... +AWS_SECRET_ACCESS_KEY=... +AWS_REGION=us-east-1 CATALOG_WAREHOUSE=s3://your-warehouse-bucket/ -d \ No newline at end of file +ENVIRONMENT="development" +DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:54322/postgres" +POOLER_URL="postgresql://postgres:postgres@127.0.0.1:54322/postgres" +JWT_SECRET="super-secret-jwt-token-with-at-least-32-characters-long" +REDIS_URL="redis://localhost:6379" +LANGFUSE_API_URL="https://us.cloud.langfuse.com" +LANGFUSE_PUBLIC_API_KEY="pk..." +LANGFUSE_PRIVATE_API_KEY="sk..." +POSTHOG_API_KEY="phc_..." +OPENAI_API_KEY="sk-..." +ANTHROPIC_API_KEY="sk-..." +RESEND_API_KEY="re_..." +BUSTER_URL="http://localhost:3000" +BUSTER_WH_TOKEN="buster-wh-token" +EMBEDDING_PROVIDER="ollama" +EMBEDDING_MODEL="mxbai-embed-large" +COHERE_API_KEY="..." +NEXT_PUBLIC_API_URL="http://127.0.0.1:3001" +NEXT_PUBLIC_URL="http://localhost:3000" +NEXT_PUBLIC_SUPABASE_URL="http://127.0.0.1:54321" +NEXT_PUBLIC_SUPABASE_ANON_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0" diff --git a/api/.env.example b/api/.env.example deleted file mode 100644 index 57e7ff31c..000000000 --- a/api/.env.example +++ /dev/null @@ -1,9 +0,0 @@ -ENVIRONMENT="development" -DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:54322/postgres" -JWT_SECRET="super-secret-jwt-token-with-at-least-32-characters-long" -REDIS_URL="redis://127.0.0.1:6379" -LANGFUSE_API_URL="https://us.cloud.langfuse.com" -LANGFUSE_PUBLIC_API_KEY="pk-lf-xxxxxx" -LANGFUSE_PRIVATE_API_KEY="sk-lf-xxxxxx" -OPENAI_API_KEY="sk-xxxxxx" -EMBED_VEC_LENGTH="1536" \ No newline at end of file