Why is the Apple Touch Icon loaded via HTTP instead of HTTPS?

Fixed by adding this 301 redirect to my app.yml hooks section:

- file:
    path: /etc/nginx/conf.d/discourse_redirect_1.conf
    contents: |
      server {
        listen 443;
        server_name www.community.example.com;
        return 301 $scheme://community.example.com$request_uri;
      }