Skip to content

Instantly share code, notes, and snippets.

View babadee08's full-sized avatar

Damilare Durojaye babadee08

View GitHub Profile
@babadee08
babadee08 / nginx_config
Last active January 26, 2018 19:20
The finale configuration of your nginx config file
#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 January 26, 2018 19:14
This is the result of successful verification of certbot
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
@babadee08
babadee08 / routes.js
Created January 26, 2018 18:50
code snippet
'use strict'
const Helpers = use('Helpers')
// Temporary verification method
Route.get('/.well-known/acme-challenge/:key', ({ params, response }) => {
return response.attachment(
Helpers.publicPath('file')
)
})