Using Cloudflare Tunnel for NAT traversal, with Gitea as an example

Often you run many services on your LAN, and when you need to reach them from outside you usually do it with port forwarding. Here I use Cloudflare Tunnel instead — no port forwarding on the router is needed, and you can add two-factor authentication via Email OTP, which improves both convenience and security. It works for a NAS, a Git server, a Virtual Machine Manager, and more on your LAN. ...

November 7, 2022

Auto-updating docker containers - watchtower

I run a bunch of docker containers on Synology and on a few servers, and use watchtower to update their images automatically. First set the timezone to Taipei: sudo timedatectl set-timezone Asia/Taipei Add the cleanup and schedule flags: docker run -d --restart=always \ --name watchtower \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /etc/localtime:/etc/localtime:ro \ containrrr/watchtower \ --cleanup \ --schedule "0 0 4 * * *" More flags can be found here: https://containrrr.dev/watchtower/arguments/

November 6, 2022