Skip to content

Instantly share code, notes, and snippets.

Damilare Durojaye babadee08

Block or report user

Report or block babadee08

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@babadee08
babadee08 / nginx_config
Last active Jan 26, 2018
The finale configuration of your nginx config file
View nginx_config
#HTTP CONFIG START
server {
listen 80;
server_name domainname.com;
if ($scheme = 'http') {
rewrite ^ https://$http_host$request_uri? permanent;
}
}
@babadee08
babadee08 / result.sh
Last active Jan 26, 2018
This is the result of successful verification of certbot
View result.sh
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
View routes.js
'use strict'
const Helpers = use('Helpers')
// Temporary verification method
Route.get('/.well-known/acme-challenge/:key', ({ params, response }) => {
return response.attachment(
Helpers.publicPath('file')
)
})
You can’t perform that action at this time.