mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
* Nginx to caddy (#5) Convert all nginx instances to caddy instances, setup acme as well * matrix implemented
18 lines
433 B
Nix
18 lines
433 B
Nix
{inputs, ...}: {
|
|
services = {
|
|
caddy = {
|
|
enable = true;
|
|
virtualHosts."homebox.wanderingcrow.net".extraConfig = ''
|
|
@block not remote_ip ${inputs.nix-secrets.network.primary.publicIP} private_ranges
|
|
abort @block
|
|
reverse_proxy http://localhost:7745
|
|
'';
|
|
};
|
|
homebox = {
|
|
enable = true;
|
|
settings = {
|
|
HBOX_OPTIONS_ALLOW_REGISTRATION = "true";
|
|
};
|
|
};
|
|
};
|
|
}
|