Skip to content

Commit

Permalink
feature: enable private authentication required feature (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
bguerin authored Mar 28, 2024
1 parent ed5bc1c commit 334829f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public void writeConfigJson() throws Exception {
JsonObject config = new JsonObject();
config.addProperty("dl", this.getRepository().getUrl() + "/api/v1/crates");
config.addProperty("api", this.getRepository().getUrl());
config.addProperty("auth-required", true);
JsonArray allowedRegistries = new JsonArray();
allowedRegistries.add(new JsonPrimitive(this.config.allowedRegistries.toString()));
config.add("allowed-registries", allowedRegistries);
Expand Down

0 comments on commit 334829f

Please sign in to comment.