Skip to content

Commit

Permalink
Изменение максимально допустимого размера файла (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Temmmmmo authored May 30, 2023
1 parent 2d988e2 commit 525ccfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion print_service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 525ccfa

Please sign in to comment.