How to set Codespaces Http host?

Codespaces is great I love it, Everything works as described - accept that with the port-forwarding the request header http host reported to Nginx is localhost - Magento uses this to draw links and therefore the page incorrectly renders and navigates - how can we set the http host to match the temporary URL that the port forwarding uses?

Cracked it you set up a nginx proxy to listen on an arbitrary port then proxy pass to 443 and set the domain name before you do

server {
        listen 8080 ssl http2;
        listen [::]:8080 ssl http2;
        ssl_certificate     /usr/local/nginx/conf/selfsigned.crt;
        ssl_certificate_key /usr/local/nginx/conf/selfsigned.key;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers         HIGH:!aNULL:!MD5;

        location / {
                proxy_pass https://localhost/;
                proxy_set_header Host            waynetheisinger-it-jonction-buyanddrop-m2-4j9xj5qjh7q9v-8080.githubpreview.dev;
                proxy_set_header X-Forwarded-For $remote_addr;
        }
}

server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;```