I would appreciate your suggestion on how to handle this. Once a year I need a web server for SSL certificate issuance validation - you know, the one when SSL issuer validates you by trying to read a specifically named file from a specifically named directory on a webserver from the SSL’s IP. I need this for my Home Assistant SSL.
I was hoping to have this done by utilizing TrueNAS Scale I just configured but since Electric Eel version is so new, there are no walkthroughs or apps on it. I’m pretty sure it can be done and dont want to waste other’s time by requesting walkthroughs - but suggestions definitely welcome.
I tried looking up how to run docker containers on Electric Eel, but havent found one that would help me yet.
I tried installing VMs on the server but none, Linux of Windows, can even start the setup - giving me AppArmour errors blocking access to etc/ssl.config (I have another post on this).
So, Im kind of stuck right now. Still trying to learn docker stuff but havent found a direction yet
I don’t believe there’s a general web server app for EE, but Caddy is my go-to choice for a web server or reverse proxy, and it could easily be run as a custom app. Their suggested compose file is here:
…though Caddy’s also quite capable of obtaining certs by itself automatically, rather than the manual process you’re currently using with your (presumably paid) provider.
Thank you for the recommendation, I’ll read up on it and try to run it in docker EE - it’s all new to me.
There is, probably, a better way to get SSLs but my cursory reading into LetsEncrypt, which is what I assume Caddy uses for free auto SSLs, requires opening port 80 every 90 days, which I really didnt want do. At the moment I pay like $3 for a year of SSL and dont have to bother with it every 3 months.
There are some places where you can get free domain names that work with DNS-01. Here is an example of one: dnsapi · acmesh-official/acme.sh Wiki · GitHub. Otherwise cheap domain names are only like 4$ per year.
But back to the original question:
If I need a quick and temporary webserver to serve static files I do the following:
ssh into my TrueNAS using my user
cd into the directory whose files I wish to share
run python -m http.server 8080 (in a tmux session if I need the webserver a bit longer)