Created
September 15, 2018 08:41
-
-
Save mabumusa1/7080a3b360552a2ecba965b9e4815b33 to your computer and use it in GitHub Desktop.
Steps to add SSL to homestead
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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