Merge dev: v26.05.23.0 migration follow-ups (#2)
pg_dump + zstd in runtime image, lift Quart body cap to 1 GiB. See PR #2.
This commit was merged in pull request #2.
This commit is contained in:
+5
-2
@@ -16,12 +16,15 @@ ENV PYTHONUNBUFFERED=1 \
|
|||||||
PIP_NO_CACHE_DIR=1 \
|
PIP_NO_CACHE_DIR=1 \
|
||||||
PIP_DISABLE_PIP_VERSION_CHECK=1
|
PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||||
|
|
||||||
# System deps: ffmpeg (transcode + thumbnails, used in FC-2), unar (archives, FC-2),
|
# System deps: ffmpeg (transcode + thumbnails, FC-2), unar (archives, FC-2),
|
||||||
# libpq for psycopg, image libs.
|
# libpq for psycopg, postgresql-client + zstd for FC-5 backup/restore
|
||||||
|
# (pg_dump + tar --zstd), image libs.
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
unar \
|
unar \
|
||||||
libpq5 \
|
libpq5 \
|
||||||
|
postgresql-client \
|
||||||
|
zstd \
|
||||||
libjpeg62-turbo \
|
libjpeg62-turbo \
|
||||||
libwebp7 \
|
libwebp7 \
|
||||||
libpng16-16 \
|
libpng16-16 \
|
||||||
|
|||||||
@@ -23,6 +23,12 @@ def create_app() -> Quart:
|
|||||||
|
|
||||||
app = Quart(__name__)
|
app = Quart(__name__)
|
||||||
app.secret_key = cfg.secret_key
|
app.secret_key = cfg.secret_key
|
||||||
|
# FC-5: legacy IR ingest JSON can run to tens of MB (hundreds of
|
||||||
|
# thousands of image_tag_associations). Werkzeug's default form
|
||||||
|
# memory cap is 500KB; raise both ceilings so the multipart upload
|
||||||
|
# for /api/migrate/ir_ingest doesn't 413.
|
||||||
|
app.config["MAX_CONTENT_LENGTH"] = 1024 * 1024 * 1024 # 1 GB
|
||||||
|
app.config["MAX_FORM_MEMORY_SIZE"] = 1024 * 1024 * 1024 # 1 GB
|
||||||
|
|
||||||
for bp in all_blueprints():
|
for bp in all_blueprints():
|
||||||
app.register_blueprint(bp)
|
app.register_blueprint(bp)
|
||||||
|
|||||||
Reference in New Issue
Block a user