From 12773849f1004935490fe63b873834af0278fcab Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 16 Feb 2021 21:29:36 -0500 Subject: Publish Vultr post --- src/blog/hosting-on-vultr-vps.html | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 src/blog/hosting-on-vultr-vps.html (limited to 'src/blog/hosting-on-vultr-vps.html') diff --git a/src/blog/hosting-on-vultr-vps.html b/src/blog/hosting-on-vultr-vps.html new file mode 100644 index 0000000..ea7ef33 --- /dev/null +++ b/src/blog/hosting-on-vultr-vps.html @@ -0,0 +1,71 @@ +title: Hosting on Vultr VPS +date: February 16, 2021 18:10 +--- +

+This website was originally hosted for free with GitLab Pages. As of a few weeks +ago, it's now being served by Nginx from a Vultr VPS. Here's a few reasons why I +made the switch: + +

+

+ +

Current setup

+ +

+As mentioned, the website is served with Nginx. It's still statically generated +with my Ruby script. I build locally and use rsync to incrementally +update the hosted files. +

+ +

+I use certbot with the Nginx plugin to +get an SSL certificate. A cron job should ensure the certificate is updated +automatically before expiry. +

+ +

Website traffic analysis

+

+I've already gotten some interesting statistics from server logs. The day I +posted a Hacker News comment linking to one of my blog posts, there were four +times as many HTTP requests received, including around 200 unique IPs referred +from news.ycombinator.com. +

+ +

+So far my log analysis has been very ad hoc — just manually parsing the +log files with command line tools and Vim. For example, to get that 200 number +from above I ran + +

+awk '/ycombinator/ { print $1 }' logs | sort | uniq | wc -l
+
+ +I wonder if there are any good tools for parsing and analyzing Nginx logs, or if +I should build something simple of my own. +

+ +

Self-hosting

+

+In addition to this website, I'm also using the VPS to host a personal email +server and some git repos. The email +server is based on Postfix and Dovecot and was painlessly installed and +configured thanks to +emailwiz. The git +frontend is cgit. I might write a post +about setting up and configuring it later. Overall quite happy with what it +looks like and what it offers. +

-- cgit v1.2.3