Traefik: add security headers

Add the following to your traefik.yml http: middlewares: secure-headers: headers: # Enable HTTP Strict Transport Security (HSTS) stsSeconds: 31536000 stsPreload: true # X-Content-Type-Options header contentTypeNosniff: true # Prevent browser from running any kind of active content inside the page. frameDeny: t…

Traefik: redirect www to non-www

Add the following to your traefik.yml http: middlewares: www-redirect: redirectregex: regex: ^(?:https://)?(?:www\.)?(.+) replacement: https://${1} permanent: true Now you can just add the following label to your docker container: traefik.http.routers.REPLACE-THIS.middlewares: "www-redirect@file"…

Backing up Google Photos with Docker

In this article I'll be using the rclone Docker container and a cron job to back up my Google Photos to my NAS every night. Rclone ("rsync for cloud storage") is a command-line program to sync files and directories to and from different cloud storage providers.…

How to Stream Jellyfin to a Chromecast

You'll probably have a local domain for you're Jellyfin container, resolved via Pi-hole (something like jellyfin.box). And when casting from the Jellyfin app to a Chromecast, the screen is stuck on the Jellyfin logo. This is because the Chromecast can't resolve jellyfin.box.…