-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netbird: rework server and include new component #354032
base: master
Are you sure you want to change the base?
Conversation
d6f32bf
to
67b0145
Compare
Result of 2 packages blacklisted:
3 packages built:
|
Same here, also on x86_64-linux. :) |
67b0145
to
6f81122
Compare
Fellow user of Kanidm/Netbird here. Can confirm that the server is non functional at the moment, again due to clashing ports. services.netbird.server.management.extraOptions = [ "--metrics-port=9091" ]; to my configuration. ...Is it worth creating a separate PR to fix Also please let me know if I can help with testing in any way. |
Might be a good idea to put the More eyes and people testing are always welcome. I'm just gonna run the new module while I work on this PR for a few weeks and see if anything comes up. Seems like right now the blocker for both of us is kanidm kanidm/kanidm#3217 |
Yeah, can do - I was thinking add an extraOption to signal, and potentially even adding my snippet above as the default for one of them so it works out of the box again? |
I would say you could just add your snippet as the default and we can always switch to a dedicated option later, but thinking about it I'm not sure the newest update will work without the relay server packaged and setup so I'm not sure a new PR is worth it if it won't work anyway. |
I'm on nixpkgs |
Oh nice. Wasn't sure how much they already depend on the relay.
Sounds great. I'll try and finish this one soon as well, now that the branchoff happened. |
PR opened, input would be appreciated @PatrickDaG |
e72c0c9
to
06554e2
Compare
040588f
to
0ec9479
Compare
0ec9479
to
dba8ef8
Compare
nixos/netbird: introduce proxy for unified nginx setup
abd789b
to
5d8347c
Compare
nixos/netbird: introduce proxy for unified nginx setup
5d8347c
to
4e08990
Compare
This is a pretty hefty rework of the nixos netbird modules.
First of all I split the package into three because currently you cannot have the client installed without the server components coming with it, now it's three packages, a client, a client with gui and a server.
You still have the option to build a package containing everything but I don't think most people need that.
Secondly I wrote a basic test for the server, now we at least know if it starts, which it currently doesn't cause upstream introduced clashing ports for all server, that cannot be disabled.
I would love further testing but I think that would need actually logging in into the kanidm instance inside the testing framework, which is something for another day.
The test also currently depend on #353681.
Netbird is currently switching away from coturn in favour of their own relay implementation, which this pull adds.
Their communication towards whether coturn will be needed going forward is a bit confusing, but I'm pretty sure right now you need both their relay and coturn, maybe in a few updates we can remove coturn.
Lastly I reworked the nginx setup, realizing you don't necesarrily need it, apart from serving the dashboard.
I removed it from all services and the default setup should now work without it, but you have to forward and open all relevant ports, for the management, signal, coturn, dashboard and relay.
To make it easier for people using nginx as a reverse proxy I've added the proxy, module which is written and maintained completely by myself and has no affiliation to upstream netbird. I do plan on using this and think it's valuable to have even just as a documentation of nginx options to use with netbird, but I am scared that people have problems with this module and complain to upstream netbird. Don't really know what to do whether to include or not, feedback appreciated.
In general this isn't extensively tested yet, but I would be very happy if people help me test it.
It has to wait for branch off anyway because it contains a bunch of breaking changes.
Also should probably write more documentation especially regarding the proxy module.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.