Skip to content

Use Turbo in Whitehall#11092

Draft
patrickpatrickpatrick wants to merge 3 commits intomainfrom
what-if-we-used-turbo
Draft

Use Turbo in Whitehall#11092
patrickpatrickpatrick wants to merge 3 commits intomainfrom
what-if-we-used-turbo

Conversation

@patrickpatrickpatrick
Copy link
Contributor

@patrickpatrickpatrick patrickpatrickpatrick commented Feb 6, 2026

As a proof of concept, this will replace PROCESSING of an uploading image with the thumbnail of the image after it has been added to asset manager.

To get to work locally you need to add the following to govuk-docker:

server {
    server_name whitehall-admin.dev.gov.uk;
    access_log /var/log/nginx/access.log vhost;
    http2 on;
    listen 80;
    location /.well-known/acme-challenge/ {
        auth_basic off;
        auth_request off;
        allow all;
        root /usr/share/nginx/html;
        try_files $uri =404;
        break;
    }
    listen 443 ssl;
    # No certificate for this vhost nor default certificate found, so reject SSL handshake.
    ssl_reject_handshake on;
    location / {
        proxy_pass http://whitehall-admin.dev.gov.uk;
        set $upstream_keepalive true;
    }

  location /cable {
    proxy_pass http://whitehall-admin.dev.gov.uk/cable;
    proxy_http_version 1.1;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
  }
}

added to nginx-proxy.conf

  whitehall-cable:
    <<: *whitehall
    depends_on:
      - mysql-8
      - whitehall-redis
      - nginx-proxy
      - asset-manager-app
      - link-checker-api-app
      - publishing-api-app
    environment:
      DATABASE_URL: "mysql2://root:root@mysql-8/whitehall_development"
      REDIS_URL: redis://whitehall-redis
    command: bundle exec puma -p 28080 cable/config.ru

added to whitehall/docker-compose.yml and whitehall-cable then added to depends_on for whitehall-app and whitehall-worker.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

This application is owned by the Whitehall Experience team. Please let us know in #govuk-whitehall-experience-tech when you raise any PRs.

Follow these steps if you are doing a Rails upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant