Self Hosted¶
Install Ubuntu
Install for the first time
We can see the installed wsl instances with
Using Kopia to setup snapshot backups
Well, I've had this spare 4TB hard drive laying around that wasn't particularly doing much so I decided to attach it to my ubuntu server, and just set up Kopia so write snapshots of my Immich Upload folder to it. Basically just an extra layer of backup.
Using GoAccess with Nginx Proxy Manager (NPM) to visuallize logs.
I mainly wanted to make sure and get this docker-compose.yml
in here for future use.
Note the last couple of lines. You can set to the log file to digest all logs. However, GoAccess doesn't support any filtering per hostname, so if you want to see analytics for only a particular host name, you want would to just mount the proxy-host-1_access.log
for example. npm creates one of these for each proxy host.
Hosting local https with trusted cert from Cloudflare with NPM
This is really just a helluva lot easier than what you need to do with Caddy.
Configure Cloudlfare DNS
Go to your DNS records in cloudflare and create an A record with a wild card to take care of all apps. Something like *.local
. Determine the local IP address of your server. You can use ifconfig, or look at your router settings to find what the local IP is for that particular device. For Proxy status just do DNS only.
Hosting local https with trusted cert from Cloudflare with Caddy
Caddy and tools needed for xcaddy
Install caddy from the docs: caddyserver.com/docs/install
Install Go
I did this just using snaps
Install git as well
Hosting local https app
Using Caddy for easy self-signed internal certs
Install Caddy on your server.
https://caddyserver.com/docs/install
Edit the Caddy file