Skip to content

Commit

Permalink
refactor: 불필요한 항목 제거, 포트번호 하드코딩
Browse files Browse the repository at this point in the history
  • Loading branch information
kooqooo committed Aug 8, 2024
1 parent 2ff330c commit e207f5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion back/kakao.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import secrets
from typing import Optional

from config import CLIENT_ID, CLIENT_SECRET, OUTSIDE_IP, PORT, STREAMLIT_PORT
from config import CLIENT_ID, CLIENT_SECRET, OUTSIDE_IP, PORT
from fastapi import APIRouter, Depends, Header, HTTPException, status
from fastapi.responses import RedirectResponse
from fastapi_oauth_client import OAuthClient
Expand Down
10 changes: 2 additions & 8 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,8 @@ def get_private_ip():
INSIDE_IP = get_private_ip()
OUTSIDE_IP = get_public_ip()

REST_API_KEY = cfg["Kakaologin"]["REST_API_KEY"]
REDIRECT_URI = f"http://{OUTSIDE_IP}:{cfg['PORT']}/auth"

PORT = cfg["PORT"]
STREAMLIT_PORT = cfg["STREAMLIT"]["PORT"]

KEY_FILE = cfg["SSL"]["KEY_FILE"]
CERT_FILE = cfg["SSL"]["CERT_FILE"]
PORT = 8001
STREAMLIT_PORT = 8501

CLIENT_ID = cfg["CLIENT_ID"]
CLIENT_SECRET = cfg["CLIENT_SECRET"]
Expand Down

0 comments on commit e207f5a

Please sign in to comment.