Merge pull request #180 from Zeecka/feature/workers_env

Workers in .env file
This commit is contained in:
Zeecka
2026-01-18 21:54:15 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
# Web application configuration # Web application configuration
WEB_APP_PORT=5000 WEB_APP_PORT=5000
WEB_WORKERS=8
# Application configuration # Application configuration
PROJECT_VERSION=3.1.3 PROJECT_VERSION=3.1.3
+1 -1
View File
@@ -76,4 +76,4 @@ COPY --from=builder /usr/local/bin/jpseek /usr/local/bin/jpseek
COPY --from=builder /usr/local/bin/jsteg /usr/local/bin/jsteg COPY --from=builder /usr/local/bin/jsteg /usr/local/bin/jsteg
# Commande de lancement # Commande de lancement
CMD ["gunicorn", "-w", "8", "-b", "0.0.0.0:5000", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "--capture-output", "aperisolve.utils.wsgi:application"] CMD gunicorn -w ${WEB_WORKERS:-8} -b 0.0.0.0:5000 --access-logfile - --error-logfile - --log-level info --capture-output aperisolve.utils.wsgi:application