mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-24 13:12:32 -05:00
add ddev settings to caddy and whatnot
This commit is contained in:
parent
0c526c0588
commit
92ad710067
2 changed files with 17 additions and 0 deletions
|
|
@ -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
16
modules/ddev.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue