Skip to content

Instantly share code, notes, and snippets.

@mabumusa1
Created September 15, 2018 08:41
Show Gist options
  • Save mabumusa1/7080a3b360552a2ecba965b9e4815b33 to your computer and use it in GitHub Desktop.
Save mabumusa1/7080a3b360552a2ecba965b9e4815b33 to your computer and use it in GitHub Desktop.
Steps to add SSL to homestead
sudo cp ca.homestead.homestead.crt /home/vagrant/code/
Import crt file to the certificate root
redirect nginx to SSL only
# force https-redirects
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment