generated from personal-projects/leo-claude-mktplace
Issue #25 - Docker multi-service infrastructure: - Create docker/Dockerfile with multi-stage build, git support, port 8080 - Create docker/docker-compose.yml with app + Caddy services - Create docker/Caddyfile for HTTPS termination and reverse proxy - Create docker/.env.example with configuration template Issue #26 - Startup scripts and tests: - Create scripts/start.sh for production startup with env validation - Create scripts/healthcheck.sh for Docker health checks - Add health endpoint tests to test_mcp_endpoints.py - Fix middleware order (HealthCheckBypass must wrap BearerAuth) - Fix pyproject.toml testpaths to use 'tests' directory - Update test_config.py for new defaults (0.0.0.0:8080) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -135,10 +135,11 @@ def create_app():
|
||||
|
||||
app = Starlette(routes=routes)
|
||||
|
||||
# Apply middleware (order matters - health bypass first)
|
||||
app = HealthCheckBypassMiddleware(app)
|
||||
# Apply middleware (order matters - outermost runs first)
|
||||
# HealthCheckBypass must wrap BearerAuth so it sets skip_auth flag first
|
||||
if settings.auth_token:
|
||||
app = BearerAuthMiddleware(app, token=settings.auth_token)
|
||||
app = BearerAuthMiddleware(app, auth_token=settings.auth_token)
|
||||
app = HealthCheckBypassMiddleware(app)
|
||||
|
||||
return app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user