From 3224b9c91ee2f7d5ef116c9f357616f77f8d1cd0 Mon Sep 17 00:00:00 2001 From: reiyua Date: Tue, 2 Jan 2024 04:37:22 +0000 Subject: [PATCH] Configure Google Firebase Storage --- firebase.json | 3 +++ storage.rules | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 storage.rules diff --git a/firebase.json b/firebase.json index 380789b..992cfce 100644 --- a/firebase.json +++ b/firebase.json @@ -16,5 +16,8 @@ "destination": "/index.html" } ] + }, + "storage": { + "rules": "storage.rules" } } diff --git a/storage.rules b/storage.rules new file mode 100644 index 0000000..f08744f --- /dev/null +++ b/storage.rules @@ -0,0 +1,12 @@ +rules_version = '2'; + +// Craft rules based on data in your Firestore database +// allow write: if firestore.get( +// /databases/(default)/documents/users/$(request.auth.uid)).data.isAdmin; +service firebase.storage { + match /b/{bucket}/o { + match /{allPaths=**} { + allow read, write: if false; + } + } +}