title: how do you enable ssl using laravel 8 sail
body: <p>I just created a new Laravel 8 project, following the instructions <a href="https://laravel.com/docs/8.x/installation#getting-started-on-macos" rel="noreferrer">in their docs</a>. Using <a href="https://laravel.com/docs/8.x/sail" rel="noreferrer">Laravel Sail</a> I have the site running locally on my machine just fine using <code>sail up</code>. I have set up an entry in <code>/etc/hosts</code> so the url I go to is <code>http://local.dev.domain.com</code> (substituting <code>domain.com</code> for the actual domain name I own, and pointing to <code>localhost</code> in the <code>/etc/hosts</code> file)...all works great.</p>
  <p>However, the site needs to use Facebook Login, and Facebook requires https urls only on referrers. I've tried everything I could find online about setting up SSL certs with docker, but setting up nginx with manually created certs (via <code>mkcert</code>) or trying to use letsencrypt all fails for various reasons (conflicts in ports, letsencrypting wanting the domain to be a real one (and failing on the acme challenge if I do create that subdomain), etc. I've copied the certs to <code>/etc/ssl/certs</code> in the docker image and run <code>update-ca-certificates</code>, tried setting the application port <code>443</code> in my <code>.env</code> file as well as opening both ports <code>80</code> and <code>443</code> in the <code>docker-compose.yml</code> file...but all ends in the browser rejecting the request to <code>https://local.dev.domain.com</code></p>
  <p>I've spent hours trying to get this to work but it doesn't seem like anyone has used the Laravel Sail docker image with SSL.</p>
  <p>Any pointers?</p>
  <p>[Edit for more info]
  As pointed out in the comments, you need to set an alias to just use <code>sail ...</code>, but I've already done that:</p>
  <p><a href="https://i.stack.imgur.com/r8IfU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/r8IfU.png" alt="enter image description here" /></a></p>
  <p>I also tried without the bash alias using <code>vendor/bin/sail share</code> to no avail:</p>
  <p><a href="https://i.stack.imgur.com/B5QN6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/B5QN6.png" alt="enter image description here" /></a></p>