mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-12 02:04:09 -05:00
* Nginx to caddy (#5) Convert all nginx instances to caddy instances, setup acme as well * matrix implemented
14 lines
424 B
Nix
14 lines
424 B
Nix
{
|
|
config,
|
|
inputs,
|
|
...
|
|
}: {
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts."logs.wanderingcrow.net".extraConfig = ''
|
|
@block not remote_ip ${inputs.nix-secrets.network.primary.publicIP} private_ranges
|
|
abort @block
|
|
reverse_proxy http://${builtins.toString config.services.grafana.settings.server.http_addr}:${builtins.toString config.services.grafana.settings.server.http_port}
|
|
'';
|
|
};
|
|
}
|