Home PageSocialsBlog MetaPoetryTechThoughts/RantsProjectsVPS SetupGit ReposFriends of STUTS

VPS Setup

×
# Create dir
mkdir /var/www/blog.stuts.uk
cd /var/www/blog.stuts.uk

# Get release
tar xf /root/writefreely_0.12.0_linux_amd64.tar.gz --strip 1

# Move the writefreely/* files to cwd

# Remove tarball and empty writefeel directory

./writefreely config start
    Reverse Proxy
    Port: 8080
    SQLite
    Single User Blog
    User: stuts
    Pass: <redacted>
    Blog Name: STUTS Blog
    Federation: Enabled
    Usage stats: Public
    Instance metadata: Public

./writefreely keys generate

# Add nginx config

cat << EOF > /etc/systemd/system/writefreely.service
[Unit]
Description=WriteFreely Instance
After=syslog.target network.target
# If MySQL is running on the same machine, uncomment the following
# line to use it, instead.
#After=syslog.target network.target mysql.service

[Service]
Type=simple
StandardOutput=syslog
StandardError=syslog
WorkingDirectory=/var/www/blog.stuts.uk
ExecStart=/var/www/blog.stuts.uk/writefreely
Restart=always

[Install]
WantedBy=multi-user.target
EOF