nixos/docker-registry: allow running on ports < 1024

This commit is contained in:
Mathijs Kwik 2018-06-05 11:27:03 +02:00
parent 5f1ad29340
commit c4fd2b7318

View file

@ -120,6 +120,7 @@ in {
serviceConfig = {
User = "docker-registry";
WorkingDirectory = cfg.storagePath;
AmbientCapabilities = mkIf (cfg.port < 1024) "cap_net_bind_service";
};
};