Crates.io | quartermaster |
lib.rs | quartermaster |
version | 0.2.1 |
source | src |
created_at | 2024-01-20 02:55:47.934446 |
updated_at | 2024-02-11 06:31:19.131823 |
description | A dead-simple alternate registry suitable for private registries |
homepage | |
repository | https://github.com/Palladinium/quartermaster |
max_upload_size | |
id | 1106141 |
size | 133,420 |
A dead-simple Cargo Alternate Registry suitable for private registries.
If you are tired of using git dependencies for your private crates and just want to host your own cargo registry now, Quartermaster is for you.
If you need any of these features, you're probably better off looking at alternatives.
Quartermaster is still very early in development, and these are features which are planned but I haven't gotten around to implementing yet. Contributions are welcome and appreciated!
owner
endpoints are not implemented.If you prefer running Quartermaster in a container, an image is available on DockerHub. The preferred method of configuration when using Docker is through environment variables, but config files are still supported.
docker pull palladinium/quartermaster
You can compile Quartermaster yourself with cargo.
cargo install --frozen quartermaster
Quartermaster uses the excellent config crate to support configuration through either a toml
config file or environment variables, or a combination of both. The matching environment variable name is constructed by using double underscores as a separator, for example a configuration option foo.bar_baz.boz
can be equivalently set through the environment variable QUARTERMASTER__FOO__BAR_BAZ__BOZ
. Arrays of values can be defined by comma-separating individual values. Environment variables will override values set in the config file.
By default, Quartermaster expects to be run as a system service and will read /etc/quartermaster/config.toml
, but this can be overridden by setting the environment variable QUARTERMASTER_CONFIG_FILE
.
Take care when using config files to set secret values such as auth tokens and S3 credentials. The config file should have restrictive permissions to avoid exposing the secrets to other users on the system.
See the example configuration for more documentation on the individual options.
This project and all contributions to it are licensed under the GPL General Public License v3.