- http-ranges support for nar file streaming
- streaming build logs
- .ls file streaming
- Note: doesn't contain
narOffsetin json response but isn't needed fornix-index
- Note: doesn't contain
- Speedup serving of smaller nar files by generating nar files using nix as a library instead of starting
a
nix-storeprocess for each nar file - Add
/serve/<narhash>/endpoint to allow serving the content of package. Also discovers index.html to allow serving websites directly from the nix store.
nix build -Lnix developConfiguration is done via a toml file. The location of the configuration file
should be passed as env var CONFIG_FILE. If no config file is passed the
following default values will be used:
bind = "[::]:5000"
workers = 4
max_connection_rate = 256
priority = 30Per default we wont sign any narinfo because we don't have a secret key, to
enable this feature enable it by providing a path to a private key generated by
nix-store --generate-binary-cache-key cache.example.com-1 /etc/nix/cache.sk /etc/nix/cache.pk
sign_key_path = "/run/secrets/key"harmonia will fallback to the SIGN_KEY_PATH environment if sign_key_path is not set in configuration.
Logging can be configured with
env_logger. The default value
is info,actix_web=debug. To only log errors use the following
RUST_LOG=error and to only disable access logging, use
RUST_LOG=info,actix_web::middleware=error
nix flake check -L