configuration
flake
hosts
_iso
aluminium
astatine
backup-4
beryllium
carbon
clerie-backup
dn42-il-gw1
dn42-il-gw5
dn42-il-gw6
dn42-ildix-clerie
dn42-ildix-service
bird.nix
configuration.nix
fernglas.nix
hardware-configuration.nix
secrets.json
ssh.pub
gatekeeper
hydra-1
hydra-2
krypton
mail-2
monitoring-3
nonat
osmium
palladium
porter
storage-2
tungsten
web-2
zinc
lib
modules
pkgs
users
.gitignore
README.md
flake.lock
flake.nix
38 lines
897 B
Nix
38 lines
897 B
Nix
{ config, lib, inputs, ... }:
|
|
|
|
{
|
|
networking.firewall.allowedTCPPorts = [ 3000 1179 ];
|
|
|
|
services.fernglas = {
|
|
enable = true;
|
|
settings = {
|
|
api.bind = "[::1]:3000";
|
|
collectors = [
|
|
{
|
|
collector_type = "Bgp";
|
|
bind = "[::]:1179";
|
|
default_peer_config = {
|
|
asn = 4242422953;
|
|
router_id = "${(lib.head config.networking.interfaces.ens18.ipv4.addresses).address}";
|
|
route_state = "Accepted";
|
|
add_path = true;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
services.nginx.virtualHosts = {
|
|
"lg.ildix.clerie.de" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
root = inputs.fernglas.packages."x86_64-linux"."fernglas-frontend";
|
|
};
|
|
locations."/api/" = {
|
|
proxyPass = "http://${config.services.fernglas.settings.api.bind}";
|
|
};
|
|
};
|
|
};
|
|
}
|