attempting proxying

This commit is contained in:
2025-12-09 16:07:49 -05:00
parent 611913c0f6
commit b6aaf9d40a
2 changed files with 5 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ COPY . .
EXPOSE 5000
ENV PYTHONUNBUFFERED=1
ENV PYTHONIOENCODING=utf-8
# Use Gunicorn instead of python main.py
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "--timeout", "120", "main:app"]
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "--timeout", "120", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "main:app"]

View File

@@ -15,7 +15,9 @@ from db.default import initializeImages
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
datefmt='%Y-%m-%d %H:%M:%S',
stream=sys.stdout,
force=True # Override any existing config
)
app = Flask(__name__)