From 8101b9f6593bae8673d1884a45e88bce43977d6d Mon Sep 17 00:00:00 2001 From: Svenum <43136984+Svenum@users.noreply.github.com> Date: Mon, 5 Aug 2024 03:32:19 +0200 Subject: [PATCH] Update host-your-own-binary-cache-server.md (#178) --- docs/nix-store/host-your-own-binary-cache-server.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/nix-store/host-your-own-binary-cache-server.md b/docs/nix-store/host-your-own-binary-cache-server.md index b5ac0b3..28c4b97 100644 --- a/docs/nix-store/host-your-own-binary-cache-server.md +++ b/docs/nix-store/host-your-own-binary-cache-server.md @@ -123,13 +123,13 @@ following content: Now, create a policy for uploading files to S3 using the `nix-cache-write.json` file: ```bash -mc admin policy add s3 nix-cache-write nix-cache-write.json +mc admin policy create s3 nix-cache-write nix-cache-write.json ``` Associate the S3 policy we just created with the `nixbuilder` user: ```bash -mc admin policy set s3 nix-cache-write user=nixbuilder +mc admin policy attach s3 nix-cache-write -user nixbuilder ``` Allow anonymous users to download files without authentication, so all Nix servers can