server {
  listen       80;
  server_name  log.shinofara.xyz;
  return 301 https://$host$request_uri;
}
server {
  listen       443 ssl http2;
  server_name  log.shinofara.xyz;

  ssl_certificate /etc/letsencrypt/live/log.shinofara.xyz/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/log.shinofara.xyz/privkey.pem;

  ssl_session_cache   shared:SSL:3m;
  ssl_buffer_size     8k;
  ssl_session_timeout 10m;

  ssl_ciphers AESGCM:HIGH:!aNULL:!MD5;
  ssl_prefer_server_ciphers on;

  charset utf-8;
  root /var/www/html;
  index index.php;


  location ~ \.php$ {
    fastcgi_pass web:9000;
    fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $fastcgi_script_name;
    include fastcgi_params;
    fastcgi_cache         wpcache;
        fastcgi_cache_key     "$scheme://$host$request_uri";
        fastcgi_cache_valid   200 10m;
        fastcgi_cache_valid   404 1m;
  }

}

listen 443 ssl http2; と書くだけでOK