Help converting Nginx config to HAproxy for immich


I’m trying to setup HAproxy for immich reverse proxy - Reverse Proxy | Immich. This is the Nginx config I need to recreate in HAproxy:
server {

client_max_body_size 50000M;

location / {
    proxy_pass http://<snip>:2283;
    proxy_set_header Host              $http_host;
    proxy_set_header X-Real-IP         $remote_addr;
    proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    proxy_http_version 1.1;
    proxy_set_header   Upgrade    $http_upgrade;
    proxy_set_header   Connection "upgrade";
    proxy_redirect off;


Could someone please provide instruction how to configure this in HAproxy?