updated caddy

This commit is contained in:
Tyler Mayoff 2025-11-29 20:16:14 -05:00 committed by Tyle Mayoff
parent 0405fb64af
commit 2ba25fc719

View file

@ -1,4 +1,8 @@
{pkgs, outputs, ...}: {
{
pkgs,
outputs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -21,7 +25,10 @@
boot.loader.grub.device = "nodev";
boot.loader.efi.efiSysMountPoint = "/efi";
services.tailscale.enable = true;
services.tailscale = {
package = pkgs.unstable.tailscale;
enable = true;
};
networking.hostName = "saffron"; # Define your hostname.
@ -29,8 +36,8 @@
services.caddy = {
enable = true;
package = pkgs.caddy.withPlugins {
plugins = ["github.com/caddy-dns/cloudflare"];
vendorHash = "sha256-A9V8WgJnalU3YzuKu3D1wJjSC1MQaH2HvOvBdLzFWl4=";
plugins = ["github.com/caddy-dns/cloudflare@v0.2.2"];
hash = "sha256-Z8nPh4OI3/R1nn667ZC5VgE+Q9vDenaQ3QPKxmqPNkc=";
};
environmentFile = "/etc/caddy/environment";
virtualHosts."rss.mayoff.ca" = {
@ -38,7 +45,7 @@
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
reverse_proxy MINIFLUX_TAILSCALE_IP:PORT
reverse_proxy serenity.pizzly-bortle.ts.net:5600
'';
};
};