Closed Fuuzetsu closed 4 years ago
Port 80 is a privileged port which usually only root can bind to. Hydra runs using the hydra user, and therefore can't bind to the port. Usually we run with a reverse proxy in front of hydra, see e.g. http://blog.matejc.com/blogs/myblog/nixos-hydra-nginx. If you use a newer kernel, you could probably set some capabilities for the hydra-server systemd service as well to allow it.
I suspected that was the case. The issue here is that NixOS doesn't complain when hydra-server doesn't actually manage to start due to the port.
That's a nice post, I was looking for that earlier, thanks.
3000 is fine, 8080 is fine, but if I try 80 then
nixos-rebuild switch
succeeds but the server is nowhere to be seen.systemctl status
with port 80 setWith 3000 set