diff --git a/.copier-answers.resonant.yml b/.copier-answers.resonant.yml index b2b0396b..ad938acd 100644 --- a/.copier-answers.resonant.yml +++ b/.copier-answers.resonant.yml @@ -1,4 +1,4 @@ -_commit: v0.50.4 +_commit: v0.50.5 _src_path: https://github.com/kitware-resonant/cookiecutter-resonant core_app_name: core include_example_code: false diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1d92c6b0..d601ed2f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -14,6 +14,7 @@ "features": { "ghcr.io/devcontainers/features/git-lfs:1": {}, "ghcr.io/devcontainers/features/node:1": { + "version": "24", // Work around https://github.com/devcontainers/features/pull/1625 "pnpmVersion": "none" }, diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8246a203..6f055d22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: ports: - 5432:5432 rabbitmq: - image: rabbitmq:management-alpine + image: rabbitmq:4.2-management-alpine options: >- --health-cmd "rabbitmq-diagnostics ping" --health-start-period 30s @@ -64,7 +64,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v6 - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@v8.1.0 - name: Run tests run: | uv run --locked tox diff --git a/bats_ai/settings/heroku_production.py b/bats_ai/settings/heroku_production.py index aa43cb39..cbcf96cd 100644 --- a/bats_ai/settings/heroku_production.py +++ b/bats_ai/settings/heroku_production.py @@ -13,3 +13,6 @@ # This needs to be set by the HTTPS terminating reverse proxy. # Heroku and Render automatically set this. SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") + +# Inform rate limiting that "X-Forwarded-For" should be trusted, as it's appended by Heroku. +ALLAUTH_TRUSTED_PROXY_COUNT = 1 diff --git a/docker-compose.yml b/docker-compose.yml index cb7773b3..f659c841 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: - postgres:/var/lib/postgresql rabbitmq: - image: rabbitmq:management-alpine + image: rabbitmq:4.2-management-alpine healthcheck: test: ["CMD", "rabbitmq-diagnostics", "ping"] start_period: 30s