Firefly III on Unraid + LetsEncrypt

Afternoon all. To resurrect this blog from the depths of the internet, I saw a request on the Unraid forum talking about Firefly III and how the poster had no luck getting a subdomain to work for Firefly III as there wasn’t a preconfigured file available.

Funnily enough, this is exactly what I wanted to. Might as well write a guide for it.

Anyway if you’re reading this I assume you have Firefly III and running on your Unraid server, you have a domain name, and you have LetsEncrypt set up and running. If you’re struggling with LetsEncrypt I highly recommend this video from Spaceinvader One.

First step is to add two more variables to your Firefly III config file. The first is the subdomain you want to use, the second should be **. That should ensure everything works – according to the Firefly documentation anyway!

You must be sick of adding these by now

Next, create a file in \appdata\letsencrypt\nginx\proxy-confs called firefly.subdomain.conf.

Now you need something that will work as a configuration… Now my Russian is non-existent but this post by setevoy was a very good starting point. A bit of fiddling later and I have the below which works for me. Obviously, replace subdomain.domain.tld with the subdomain.domain.tld you put in the Firefly III config.

server {
    listen 443 ssl;
	
    include /config/nginx/ssl.conf;
    client_max_body_size 0;

    server_name subdomain.doman.tld;

    location / {

        add_header X-Forwarded-Proto "https";
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_pass http://[SERVERIP]:[PORT FOR FIREFLY];

    }
}

Now, these configs are most definitely not my forte, so if I’ve done something wrong or insecure please do let me know!