Subscribe/ Sign In buttons not working in Safari with Nginx


I’m currently running Ghost locally (following the instructions to install locally on a Mac here: How to install Ghost locally on Mac, PC or Linux)

I am also running Nginx locally (in Docker) with the following config:

listen [::]:443 ssl;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

client_max_body_size 50m;

location / {
    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_pass http://host.docker.internal:2368;

Seem to mostly work fine. In Chrome everything works as expected. In Safari however, I don’t get the subscribe button in the footer show up at all and also the Sign In / Subscribe buttons in the header don’t work.

ETA: Just to be clear, if I access the ghost site via localhost:2368, it works as it should and the Subscribe footer button appears and it is possible to sign up/in. If i access the site via nginx then I see the above problem but only in Safari.

I suspect both are for the same reason, some part of the page not loading, but I can’t seem to figure out why. Anyone else run into this or know why I might be seeing this problem?