mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
updated caddy
This commit is contained in:
parent
0405fb64af
commit
2ba25fc719
1 changed files with 12 additions and 5 deletions
|
|
@ -1,4 +1,8 @@
|
||||||
{pkgs, outputs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
outputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
@ -21,7 +25,10 @@
|
||||||
boot.loader.grub.device = "nodev";
|
boot.loader.grub.device = "nodev";
|
||||||
boot.loader.efi.efiSysMountPoint = "/efi";
|
boot.loader.efi.efiSysMountPoint = "/efi";
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services.tailscale = {
|
||||||
|
package = pkgs.unstable.tailscale;
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking.hostName = "saffron"; # Define your hostname.
|
networking.hostName = "saffron"; # Define your hostname.
|
||||||
|
|
||||||
|
|
@ -29,8 +36,8 @@
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.caddy.withPlugins {
|
package = pkgs.caddy.withPlugins {
|
||||||
plugins = ["github.com/caddy-dns/cloudflare"];
|
plugins = ["github.com/caddy-dns/cloudflare@v0.2.2"];
|
||||||
vendorHash = "sha256-A9V8WgJnalU3YzuKu3D1wJjSC1MQaH2HvOvBdLzFWl4=";
|
hash = "sha256-Z8nPh4OI3/R1nn667ZC5VgE+Q9vDenaQ3QPKxmqPNkc=";
|
||||||
};
|
};
|
||||||
environmentFile = "/etc/caddy/environment";
|
environmentFile = "/etc/caddy/environment";
|
||||||
virtualHosts."rss.mayoff.ca" = {
|
virtualHosts."rss.mayoff.ca" = {
|
||||||
|
|
@ -38,7 +45,7 @@
|
||||||
tls {
|
tls {
|
||||||
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||||
}
|
}
|
||||||
reverse_proxy MINIFLUX_TAILSCALE_IP:PORT
|
reverse_proxy serenity.pizzly-bortle.ts.net:5600
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue