Jon Neverland

Software Developer

Tweet new posts automatically

A must when blogging is of course to post a tweet whenever you publish a new post! It took me literally 15 minutes to set this up with Huginn.

Notifications for failed cron jobs

Cron jobs are a vital part of every sysadmins setup. Backups, log rotation, certificate renewal and whatnot. I've mostly just relied on them working as they should until now, but with my recent Huginn + Matrix obsession I figured I should have some sort of notifications. Crontab supports sending emails for

Nginx default server with https

I have a few domains/vhosts set up on my server and I recently disabled one of them. When I wanted to make sure that it wasn't online anymore and tried to access it I noticed that nginx had picked one of my other vhosts (from dokku) as the default

My two favourite services

So I do a lot of self-hosting these days. I've always been keen on trying out new stuff that turns up but most of the services I just set up, keep for a couple of weeks and never use. There are two exceptions which makes up most of my self-hosting

Nginx, Ghost and https

When moving this blog from a temporary url to my main jonnev.se I got the dreadful "Too many redirects". There is a simple fix which I found here. Add proxy_set_header X-Forwarded-Proto https; to the conf. Mine now looks like this: server { listen 443 ssl; ssl_

Ghost and production

There are 2 things you need to do to get ghost to run in production mode with docker: Add the NODE_ENV docker run -d --name ghost -v /path/to/blog:/var/lib/ghost -e NODE_ENV=production -p 2368:2368 ghost This is for ghost v0.11.x. For

Blog up and running

So I figured I wanted to have a blog and in the process redo my homepage. A friend recommended Ghost and when trying out their hosted Pro version I thought it looked great! This is for ghost v0.11.x. For v1.x.x have a look at this post!