From 525ccfa399dffbf265e85afcf5e8b928f856b76a Mon Sep 17 00:00:00 2001 From: Morozov Artem <126605382+Temmmmmo@users.noreply.github.com> Date: Tue, 30 May 2023 13:01:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BC=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D0=BE=20=D0=B4=D0=BE=D0=BF=D1=83=D1=81=D1=82=D0=B8?= =?UTF-8?q?=D0=BC=D0=BE=D0=B3=D0=BE=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80?= =?UTF-8?q?=D0=B0=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20(#56)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_and_publish.yml | 2 ++ print_service/settings.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 980b914..277de65 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -109,6 +109,7 @@ jobs: --env STATIC_FOLDER=/app/static \ --env STORAGE_TIME=30 \ --env MAX_PAGE_COUNT='${{ vars.MAX_PAGE_COUNT }}' \ + --env MAX_SIZE='${{ vars.MAX_SIZE }}' \ --name ${{ env.CONTAITER_NAME }} \ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test docker network connect com_profcomff_api_printer_test_network ${{ env.CONTAITER_NAME }} @@ -175,6 +176,7 @@ jobs: --env STATIC_FOLDER=/app/static \ --env STORAGE_TIME=168 \ --env MAX_PAGE_COUNT='${{ vars.MAX_PAGE_COUNT }}' \ + --env MAX_SIZE='${{ vars.MAX_SIZE }}' \ --name ${{ env.CONTAITER_NAME }} \ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest docker network connect com_profcomff_api_printer_network ${{ env.CONTAITER_NAME }} diff --git a/print_service/settings.py b/print_service/settings.py index b26623b..b281560 100644 --- a/print_service/settings.py +++ b/print_service/settings.py @@ -15,7 +15,7 @@ class Settings(UnionAuthSettings, BaseSettings): ROOT_PATH: str = '/' + os.getenv('APP_NAME', '') CONTENT_TYPES: List[str] = ['application/pdf'] - MAX_SIZE: int = 5000000 # Максимальный размер файла в байтах + MAX_SIZE: int = 26214400 # Максимальный размер файла в байтах MAX_PAGE_COUNT: int = 50 STORAGE_TIME: int = 7 * 24 # Время хранения файла в часах STATIC_FOLDER: DirectoryPath | None