Http://www.site.co won't redirect to https://site.co

my trellis site has gone live this evening, however i’ve noticed that http://www.site.co isn’t redirecting to https://site.co

SSL is installed correctly and the site is functioning at https://site.co with http://site.co and https://www.site.co redirecting as expected.

wordpress_sites.yml currently is configued:

site_hosts:
      -site.co
    www_redirect: true
    local_path: ../site.co
    repo: git@github.com...
    branch: master
    multisite:
      enabled: false
      subdomains: false
    ssl:
      enabled: true
      cert: ~/ssl/path/cert.crt
      key: ~/ssl/path/cert.key
    cache:
      enabled: false
      duration: 30s
    system_cron: true
    env:
      wp_home: https://site.co
      wp_siteurl: https://site.co/wp

Any ideas?

Only way to see what’s going on here is from the Nginx config. It’s located in /etc/nginx/sites-enabled/

In my latest project I’m simply wanting www to redirect to non-www.
I thought this happened by default but it didn’t. I tried added the www_redirect: true, but this didn’t help.
Here’s part of my site’s .conf:

server {
      listen 80;
      server_name crownnoble.com.au;

  include acme-challenge-location.conf;

  location / {
    return 301 $scheme://crownnoble.com.au$request_uri;
  }
}

I added the www changing it to server_name www.crownnoble.com.au; and it worked a treat.

What do I need to do to make this automatic or is this a bug?

@rhud you could apply this temporary fix for international domains. A more permanent fix should be pushed (in next 1-10 days hopefully).