-
Notifications
You must be signed in to change notification settings - Fork 0
/
storage.rules
44 lines (39 loc) · 1.08 KB
/
storage.rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /profiles {
match /{allPaths=**} {
allow read: if true;
allow write: if (
request.resource == null
|| (
request.resource.size < 5 * 1024 * 1024
&& request.resource.contentType.matches('image/.*')
)
)
&& request.auth != null;
}
}
match /inquisitor/Questions {
match /{allPaths=**} {
allow read: if true;
allow write: if (request.resource == null
|| request.resource.size < 16 * 1024 * 1024)
&& request.auth != null;
}
}
match /inquisitor/files {
match /{allPaths=**} {
allow read: if true;
allow write: if (request.resource == null
|| request.resource.size < 16 * 1024 * 1024)
&& request.auth != null;
}
}
match /inquisitor/backups {
match /{allPaths=**} {
allow read, write: if false;
}
}
}
}