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
#HTTP CONFIG START | |
server { | |
listen 80; | |
server_name domainname.com; | |
if ($scheme = 'http') { | |
rewrite ^ https://$http_host$request_uri? permanent; | |
} | |
} |
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
Waiting for verification... | |
Cleaning up challenges | |
IMPORTANT NOTES: | |
- Congratulations! Your certificate and chain have been saved at: | |
/etc/letsencrypt/live/domainname.com/fullchain.pem | |
Your key file has been saved at: | |
/etc/letsencrypt/live/domainname.com/privkey.pem | |
Your cert will expire on 2018-04-26. To obtain a new or tweaked | |
version of this certificate in the future, simply run certbot |
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
'use strict' | |
const Helpers = use('Helpers') | |
// Temporary verification method | |
Route.get('/.well-known/acme-challenge/:key', ({ params, response }) => { | |
return response.attachment( | |
Helpers.publicPath('file') | |
) | |
}) |