Skip to content

Commit

Permalink
🔨 add password to redis
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceunx committed Apr 29, 2024
1 parent eb6d3b0 commit 7ef45ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gpt_server/routers/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class Settings(BaseSettings):
redis_host: str = os.environ['REDIS_HOST']
redis_port: int = int(os.environ['REDIS_PORT'])
redis_password: str = os.environ['REDIS_PASSWORD']
rate_limit_per_minute: int = 2


Expand All @@ -33,6 +34,7 @@ class Settings(BaseSettings):
redis_client = Redis(
host=settings.redis_host,
port=settings.redis_port,
password=settings.redis_password,
db=0,
decode_responses=True,
)
Expand Down

0 comments on commit 7ef45ce

Please sign in to comment.