update env vars for testing

This commit is contained in:
Jason Koh 2025-05-27 16:25:57 -07:00
parent 50e36e67f0
commit d7f4f8ef4a
2 changed files with 2 additions and 0 deletions

View file

@ -1,5 +1,6 @@
# Test DB URI. You can use your actual MONGO_URI if you don't mind it potentially including test data. # Test DB URI. You can use your actual MONGO_URI if you don't mind it potentially including test data.
MONGO_URI=mongodb://127.0.0.1:27017/chatgpt-jest MONGO_URI=mongodb://127.0.0.1:27017/chatgpt-jest
MONGO_DB_NAME=librechat-test
# Credential encryption/decryption for testing # Credential encryption/decryption for testing
CREDS_KEY=c3301ad2f69681295e022fb135e92787afb6ecfeaa012a10f8bb4ddf6b669e6d CREDS_KEY=c3301ad2f69681295e022fb135e92787afb6ecfeaa012a10f8bb4ddf6b669e6d

View file

@ -2,6 +2,7 @@
require('dotenv').config({ path: './test/.env.test' }); require('dotenv').config({ path: './test/.env.test' });
process.env.MONGO_URI = 'mongodb://127.0.0.1:27017/dummy-uri'; process.env.MONGO_URI = 'mongodb://127.0.0.1:27017/dummy-uri';
process.env.MONGO_DB_NAME = 'librechat-test'
process.env.BAN_VIOLATIONS = 'true'; process.env.BAN_VIOLATIONS = 'true';
process.env.BAN_DURATION = '7200000'; process.env.BAN_DURATION = '7200000';
process.env.BAN_INTERVAL = '20'; process.env.BAN_INTERVAL = '20';