The lowest-powered droplet is more than sufficient for my meager needs, for now.
|Name||Creation date||IP address||RAM size||SSD size||Operating system||Region||Cost|
|spike.hexstream.net||220.127.116.11||512MB||20GB||Ubuntu 14.04 x64||New York 1||US $5/month ($0.007/hour)|
This droplet uses Ubuntu instead of Debian (what I would choose nowadays), for historical reasons.
For installation of Apache, I simply use the
apache2 Ubuntu package.
I have this at the end of my
/etc/apache2/apache2.conf (because I want to mostly ignore the Ubuntu way of doing things, in this case):
custom directory is a copy of the
$PRE_DEPLOY_DIR/apache/ directory, pulled in by deploy.sh.
$PRE_DEPLOY_DIR/apache/public/ is populated with the files in the
services/digitalocean/config/droplets/spike.hexstream.net/apache/ directory (recursively) in the
status-quo.hexstreamsoft.com repo, while
$PRE_DEPLOY_DIR/apache/private/ is populated with the files in the
apache/ directory (recursively) in the
private.status-quo.hexstream.xyz repo. The populating is done by pre-deploy.sh, which I invoke manually when appropriate, for now. Whenever one of the apache config files is updated, I manually invoke the
deploy.sh (as root), for now.
$PRE_DEPLOY_DIR is defined in
/etc/environment and has the value
Here's my /etc/apache2/custom/public/custom.conf.
Includes site-wide-redirects.conf and site-wide-tunnels.conf. That latter file's
$HOME_IP is replaced by my current home IP address using sed during pre-deployment.
deploy.sh script restarts the Apache server with
graceful is like
restart except it will finish serving the current requests instead of abruptly aborting them.)
Miscellaneous raw stuff. I'll clean this up later, probably. Maybe.
I run my own private bittorrent tracker. ("private" in the sense that only I can add files.)
opentracker isn't yet widely available in repos, for stupid licensing reasons.
(Supposedly you don't need a tracker these days, because of the DHT stuff, but I'm not sure how well that works (if at all) for incredibly obscure torrents, and if that's likely to cause performance or compatibility problems.)
/etc/init.d/opentracker(I made this based on
/etc/init.d/skeleton. I'm a newb, so probably has bugs and/or style problems.)