Skip to content

Commit

Permalink
redis env
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoneerC committed Aug 24, 2024
1 parent 439eb59 commit ecb61c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import os
from functools import lru_cache

import httpx
Expand Down Expand Up @@ -45,9 +46,9 @@
)

r = redis.Redis(
host='assured-shrew-49745.upstash.io',
port=6379,
password='AcJRAAIjcDFkZmQ4MzA5NGM2MjU0NTNlOWI4OTVjYzNiODAwZjY5MnAxMA',
host=os.getenv("REDIS_HOST"),
password=os.getenv("REDIS_PASSWORD"),
port=int(os.getenv("REDIS_PORT")),
ssl=True
)

Expand Down

0 comments on commit ecb61c0

Please sign in to comment.