add ddev settings to caddy and whatnot

This commit is contained in:
TheWanderingCrow 2026-02-20 09:54:01 -05:00
parent 0c526c0588
commit 92ad710067
2 changed files with 17 additions and 0 deletions

View file

@ -43,6 +43,7 @@
"hosts/common/optional/printing.nix"
"modules/services/jellyfin"
"modules/services/mesh/client.nix"
"modules/ddev.nix"
])
];

16
modules/ddev.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
ddev
];
# There's some one-time setup here
# ddev config global --router-http-port=8880 --router-https-port=8843
# There should also be a route for *.ddev.site in our nextdns config
services.caddy = {
enable = true;
virtualHosts."*.ddev.site:80".extraConfig = ''
reverse_proxy http://localhost:8880
'';
};
}