My Blog

How to run FileRun behind apache2 reverse proxy

Written by Justin Goetz -

This will be a guide on to run FileRun behind apache2 reverse proxy with SSL support. FileRun,, is an excellent file sharing program that looks very similar to Google Drive, making it great for users who are used to already accustomed to using gDrive.

First, install FileRun as usual. I personally installed this on a fresh Debian 8 VM, so I followed FileRun's excellent guide for installation. Oddly enough I found these directions on their blog rather than their documentation section, but oh well.

When your finished, configure your main internet-facing node as a reverse proxy. I personally use letsencrypt for all of my SSL certificates. Here is my apache2 reverse proxy configuration:

Note: SSL configuration (including the redirects at the bottom) was done by letsencrypt.

Now, we'll want to setup a self-signed certificate on the VM running FileRun, because if its not being accessed via HTTPS it freaks out. I followed this guide to accomplish this.

Lastly, we need to change a configuration file. This part is importaint. cd to the directory where you installed FileRun. For example mine will be /var/www/html/. cd into the customizables directory. Create and edit a file called config.php.

Paste the following: <?php $config['url']['root'] = ''; Change the URL to of course what fits your configuration.

Load the site and test if it works!

Convert an old Actiontec router into a MoCA bridge

Written by Justin Goetz -

MoCA in my opinion is an awesome technology. However, the current MoCA adapters on the market are extremely overpriced, turning many away from MoCA. However, using a cheap old Verizon Actiontec router (can be found on ebay for around $15-20 used), we can create our own MoCA bridge for 1/10th the cost.

After seeing the need for a documented tutorial, I have written the following, which describes how to configure an old Verizon actiontec router as a dumb MoCA bridge, to extend your home network anywhere that coax exists.

Please, feel free to leave comments or shoot me an email if you need help!

Link to documentation

The Lincolnshire Poacher - Beep Song

Written by Justin Goetz -

One night while my friend and I were talking about the mystery of number stations such as the Lincolnshire Poacher Number Station, which played a funny little tune at the beginning of every broadcast, I decided to make a beep script for it so we can continually freak people out (or rather annoy them) with this catchy little tune.

And so, I give you, The Lincolnshire Poacher - Written in Bash for the Linux "beep" command.


Running Jira over HTTPS Apache Reverse Proxy

Written by Justin Goetz -

For my job I have to run a Jira application server. This server needs to be run behind a Apache reverse proxy. The apache server needs to be the one serving the HTTPS. Of course, this couldn't be easy, because Jira has to be the most complex, convoluted confusing software I've ever worked with.
For this, after hours of testing, I realized that you need to use Apache's "AJP Proxy". To install, firstly run:

 a2enmod proxy_ajp

This turns the module on in Apache. Next we need a virtualhost config. This config is done the same way that we normally do apache reverse proxies, only instead of http:// we put ajp://.
Example Config: VHOST.txt

Next we need to change the config files of the jira server itself. Follow this part exactly.
1. Stop the Jira server. sudo service jira stop
2. Nano the server file located at /opt/atlassian/jira/conf/server.xml
3. Replace it with the attached config: server.xml
4. Chown JIRA to the proper directories sudo chown -R jira /opt/atlassian/jira/
5. Start jira sudo service jira start This takes up to 7 minutes, so don't think you broke the install
6. Enable the apache VHOST, ensure you can access it from the web browser.

Raspberry Pi Powered Garden

Written by Justin Goetz -

Just a little project I've been working on that consists of a Raspberry pi, relays, a temperature sensor, and a webcam. The raspberry pi controls the relay on a set schedule, as well as logging and graphing the temperature sensor. The pi also takes a picture from the webcam every day to make a timelapse video in the end of plants growing. Details on construction to come.