add proxies
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K 2024-02-01 23:03:53 +01:00
parent 14ac6229d3
commit 4c6638bb18

View File

@ -111,8 +111,13 @@ class GetAuthTokenView(APIView):
}
print(headers)
print("DATA READY")
proxies = {
"http": "http://tinyproxy-svc:8888",}
try:
response = requests.post('http://localhost:8000/o/token/', headers=headers, data=data)
response = requests.post('http://izaac.izaac.pl/o/token/',
headers=headers,
data=data,
proxies=proxies)
return Response(response.json())
except:
print("ERROR")