This commit is contained in:
Untone 2024-12-16 19:06:47 +03:00
parent a41a5ad39a
commit e4a9bfa08b

View File

@ -23,6 +23,7 @@ async def check_auth(req):
""" """
token = req.headers.get("Authorization") token = req.headers.get("Authorization")
host = req.headers.get('host', '') host = req.headers.get('host', '')
logger.debug(f"check_auth: host={host}")
auth_url = AUTH_URL auth_url = AUTH_URL
if host == 'testing.dscrs.site' or host == 'localhost': if host == 'testing.dscrs.site' or host == 'localhost':
auth_url = "https://auth.dscrs.site/graphql" auth_url = "https://auth.dscrs.site/graphql"