Skip to content

Commit c8dc1ef

Browse files
committed
delete ssl verification until we find a better option
1 parent be3b2ba commit c8dc1ef

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ FROM python:${PYTHON_VERSION}-alpine
33

44
ENV SERVER_URL=https://0.0.0.0:3000
55

6-
WORKDIR /usr/src/integrationbot
6+
WORKDIR /usr/src/integration_bot
77
COPY . .
88

99
RUN pip --no-cache-dir install -U pip -r requirements.txt
10-
11-
EXPOSE 3000
10+
RUN apk add --no-cache ca-certificates
1211

1312
CMD ["python3", "-m", "integration_bot"]

integration_bot/utils/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def login() -> str:
55
api_url:str = os.getenv("API_URL") + "/auth/login"
66
payload:dict = {"email": os.getenv('BOT_WEBSITE_EMAIL'), "password": os.getenv('BOT_WEBSITE_PASSWORD')}
7-
response = requests.post(api_url, json=payload)
7+
response = requests.post(api_url, json=payload, verify=False)
88
if response.status_code == 200:
99
return response.json().get('data', {}).get('token', '')
1010
else:

integration_bot/utils/teams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def get_teams_with_factions(token: str) -> list:
55
url = os.getenv("API_URL") + "/team/admin/teamswithfactions"
66
headers = {"Authorization": f"Bearer {token}"}
77
print(f"[FETCH] Fetching teams with factions...")
8-
response = requests.get(url, headers=headers)
8+
response = requests.get(url, headers=headers, verify=False)
99
if response.status_code == 200:
1010
data = response.json().get('data', [])
1111
print(f"[FETCH] Retrieved {len(data)} teams.")

integration_bot/utils/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def get_teams_with_users(token: str) -> list:
55
url = os.getenv("API_URL") + "/team/admin/teamswithusers"
66
headers = {"Authorization": f"Bearer {token}"}
77
print(f"[FETCH] Fetching teams with users...")
8-
response = requests.get(url, headers=headers)
8+
response = requests.get(url, headers=headers, verify=False)
99
if response.status_code == 200:
1010
data = response.json().get('data', [])
1111
print(f"[FETCH] Retrieved {len(data)} teams.")

0 commit comments

Comments
 (0)