diff --git a/.DS_Store b/.DS_Store index 0b07a28..c0229d4 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.fission/deployment.json b/.fission/deployment.json index 8ef736d..f27ad36 100644 --- a/.fission/deployment.json +++ b/.fission/deployment.json @@ -1,7 +1,7 @@ { "namespace": "default", "environments": { - "user-avatar-py": { + "user-email-py": { "image": "ghcr.io/fission/python-env", "builder": "ghcr.io/fission/python-builder", "mincpu": 50, @@ -17,16 +17,16 @@ } }, "packages": { - "ailbl-user-avatar": { + "ailbl-user-email": { "buildcmd": "./build.sh", "sourcearchive": "package.zip", - "env": "user-avatar-py" + "env": "user-email-py" } }, "function_common": { - "pkg": "ailbl-user-avatar", + "pkg": "ailbl-user-email", "secrets": [ - "fission-ailbl-user-avatar-env" + "fission-ailbl-user-email-env" ], "executor": { "select": "newdeploy", @@ -46,7 +46,7 @@ "maxmemory": 500 }, "secrets": { - "fission-ailbl-user-avatar-env": { + "fission-ailbl-user-email-env": { "literals": [ "PG_HOST=160.30.113.113", "PG_PORT=45432", diff --git a/.fission/dev-deployment.json b/.fission/dev-deployment.json index ffdde0c..40b0899 100644 --- a/.fission/dev-deployment.json +++ b/.fission/dev-deployment.json @@ -1,7 +1,7 @@ { "namespace": "default", "secrets": { - "fission-ailbl-user-avatar-env": { + "fission-ailbl-user-email-env": { "literals": [ "PG_HOST=160.30.113.113", "PG_PORT=45432", diff --git a/.fission/local-deployment.json b/.fission/local-deployment.json index 58043d7..173e36b 100644 --- a/.fission/local-deployment.json +++ b/.fission/local-deployment.json @@ -1,7 +1,7 @@ { "namespace": "default", "secrets": { - "fission-ailbl-user-avatar-env": { + "fission-ailbl-user-email-env": { "literals": [ "S3_BUCKET=ailbl", "S3_ENDPOINT_URL=http://160.30.113.113:9000", diff --git a/.fission/staging-deployment.json b/.fission/staging-deployment.json index 3d1d350..40b0899 100644 --- a/.fission/staging-deployment.json +++ b/.fission/staging-deployment.json @@ -1,7 +1,7 @@ { "namespace": "default", "secrets": { - "fission-ailbl-user-avatar-env": { + "fission-ailbl-user-email-env": { "literals": [ "PG_HOST=160.30.113.113", "PG_PORT=45432", @@ -11,4 +11,4 @@ ] } } -} +} \ No newline at end of file diff --git a/.fission/test-deployment.json b/.fission/test-deployment.json index 3d1d350..40b0899 100644 --- a/.fission/test-deployment.json +++ b/.fission/test-deployment.json @@ -1,7 +1,7 @@ { "namespace": "default", "secrets": { - "fission-ailbl-user-avatar-env": { + "fission-ailbl-user-email-env": { "literals": [ "PG_HOST=160.30.113.113", "PG_PORT=45432", @@ -11,4 +11,4 @@ ] } } -} +} \ No newline at end of file diff --git a/apps/config.py b/apps/config.py deleted file mode 100644 index aec122f..0000000 --- a/apps/config.py +++ /dev/null @@ -1,10 +0,0 @@ -# Load từ .env và cung cấp cho app -import os - -class Config: - ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'webp'} - MAX_FILE_SIZE = 5 * 1024 * 1024 # 5MB - -# vì làm microservice nên không cần dùng biến môi trường nữa, khi mà dùng thì khai báo ở trên đầu luôn -# Nó khác với mô hình bình thường là config.py chỉ để khai báo cấu hình tĩnh thôi -# ALLOWED_IMAGE_TYPES = {"image/jpeg", "image/png", "image/gif", "image/webp"} \ No newline at end of file diff --git a/apps/requirements.txt b/apps/requirements.txt index 1402bf5..f922a61 100644 --- a/apps/requirements.txt +++ b/apps/requirements.txt @@ -1,6 +1,6 @@ -Flask==3.1.0 -psycopg2-binary==2.9.10 -pydantic==2.11.3 -minio==7.2.5 -Pillow==10.4.0 -boto3==1.35.70 \ No newline at end of file +# Flask==3.1.0 +# psycopg2-binary==2.9.10 +# pydantic==2.11.3 +# minio==7.2.5 +# Pillow==10.4.0 +# boto3==1.35.70 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 4ef729c..0000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -gitdb==4.0.11 -GitPython==3.1.41 -smmap==5.0.1 -Flask==2.1.1 -requests==2.32.2 \ No newline at end of file