Merge pull request 'dev' (#6) from dev into main
Reviewed-on: #6
This commit was merged in pull request #6.
This commit is contained in:
@@ -116,6 +116,7 @@ async def get_api_key(api_key_header: str = Security(api_key_header)) -> str:
|
|||||||
)
|
)
|
||||||
|
|
||||||
token = api_key_header.split(' ')[1]
|
token = api_key_header.split(' ')[1]
|
||||||
|
print(f"Token : {token}")
|
||||||
if token != API_KEY:
|
if token != API_KEY:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=401,
|
status_code=401,
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
QUIZ_TYPES = {
|
QUIZ_TYPES = {
|
||||||
1: {
|
1: {
|
||||||
"name": "Single Line Text Inputs",
|
"name": "Single Line Text Inputs",
|
||||||
|
|||||||
@@ -26,5 +26,6 @@ python-docx==1.1.2
|
|||||||
unstructured==0.17.2
|
unstructured==0.17.2
|
||||||
pypdf==5.4.0
|
pypdf==5.4.0
|
||||||
gunicorn==23.0.0
|
gunicorn==23.0.0
|
||||||
|
python-dotenv
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+13
-2
@@ -3,7 +3,7 @@
|
|||||||
# Configuration
|
# Configuration
|
||||||
REPO_URL="http://owusu:890eccfcea010beb94a0adba246aaf9258330b70@23.29.118.76:3000/owusu/ds-fire-fighter.git"
|
REPO_URL="http://owusu:890eccfcea010beb94a0adba246aaf9258330b70@23.29.118.76:3000/owusu/ds-fire-fighter.git"
|
||||||
APP_DIR="/home/ec2-user/ds-fire-fighter"
|
APP_DIR="/home/ec2-user/ds-fire-fighter"
|
||||||
BRANCH="main"
|
BRANCH="dev"
|
||||||
PYTHON_VERSION="3.11"
|
PYTHON_VERSION="3.11"
|
||||||
WORKERS=4
|
WORKERS=4
|
||||||
THREADS=2
|
THREADS=2
|
||||||
@@ -117,7 +117,18 @@ backlog = 2048
|
|||||||
|
|
||||||
# Worker processes
|
# Worker processes
|
||||||
workers = ${WORKERS}
|
workers = ${WORKERS}
|
||||||
worker_class = "uvicorn.workers.UvicornWorker"
|
worker_class = SEGMIND_API_KEY="SG_28b00087ea064e64"
|
||||||
|
IMAGEKIT_PRIVATE_KEY="private_BXnyXGjdhBpBs/sU7avdyLwPx1o="
|
||||||
|
IMAGEKIT_PUBLIC_KEY="public_hb1iwGN/UWT+aYg9mMkUQNeFh40="
|
||||||
|
IMAGEKIT_URL_ENDPOINT="6pxd8st0ugi"
|
||||||
|
DEEPAI_API_KEY = "67768bbb-b946-400d-8188-ca21b0506ed8"
|
||||||
|
HEDRA_API_KEY ="sk_hedra_0MeJTqGmZnyt_jAXboOvXUGACTeeGAFuqpjuDU7ZVy5WOkSsM6B9kDe_vI_Dhcnn"
|
||||||
|
API_KEY_ACCESS = "face_forge_sk_test_51NxYz8KJh2LmPqR3vW4tU5w6X7y8Z9A0B1C2D3E4F5G6H7I8J9K0L1M2N3O4P5Q6R7S8T9U0V1W2X3Y4Z"
|
||||||
|
PORT=5000
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
worker_connections = 1000
|
worker_connections = 1000
|
||||||
timeout = ${TIMEOUT}
|
timeout = ${TIMEOUT}
|
||||||
keepalive = 2
|
keepalive = 2
|
||||||
|
|||||||
Reference in New Issue
Block a user