Skip to content

Commit

Permalink
nixos/netbird: introduce relay server
Browse files Browse the repository at this point in the history
nixos/netbird: introduce proxy for unified nginx setup
  • Loading branch information
PatrickDaG committed Nov 21, 2024
1 parent 6f81122 commit e72c0c9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion nixos/modules/services/networking/netbird/management.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ let

Signal = {
Proto = "https";
URI = "localhost:${builtins.toString cfg.signal.port}";
Username = "";
Password = null;
};
Expand Down
1 change: 0 additions & 1 deletion nixos/modules/services/networking/netbird/relay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ in
config = mkIf cfg.enable {
services.netbird.server.relay.settings = {
NB_LISTEN_ADDRESS = mkDefault ":${builtins.toString cfg.port}";
NB_EXPOSED_ADDRESS = mkDefault "rel://${cfg.domain}:${builtins.toString cfg.port}";
NB_METRICS_PORT = mkDefault "9092"; # Upstream default is 9090 but this would clash for nixos where all services run on the same host
};
systemd.services.netbird-relay = {
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/networking/netbird/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ services.netbird.server = {
management = {
oidcConfigEndpoint = "https://sso.example.selfhosted/oauth2/openid/netbird/.well-known/openid-configuration";
settings.Signal.URI = "publicly reachable signal endpoint";
};
};
```
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/networking/netbird/server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ in
turnPort = config.services.coturn.tls-listening-port;
# We cannot merge a list of attrsets so we have to redefine the whole list
settings = {
Signal.URI = "${cfg.domain}:${builtins.toString cfg.signal.port}";
TURNConfig.Turns = mkDefault [
{
Proto = "udp";
Expand Down

0 comments on commit e72c0c9

Please sign in to comment.