Skip to content

Commit e83ae8c

Browse files
committed
update docs
1 parent f67c896 commit e83ae8c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/storage/Firebase.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ However, you will be able to access it from multiple devices.
1414

1515
To use the Firebase backend, you should first set up a Firebase instance.
1616
You can do this by clicking `CREATE NEW PROJECT` at https://console.firebase.google.com/.
17+
You should use the older "Realtime Datbase", *not* firestore.
1718

18-
You should then be given your own Firebase project id,
19+
You should then be given your own Firebase project id (or "Realtime Database URL"),
1920
something like `something-fiery-2222`.
2021
You should be able to now visit your console at a link like
2122
https://console.firebase.google.com/project/${projectId}, e.g.
@@ -36,7 +37,7 @@ Visit the Authentication tab.
3637
#### Set up database rules
3738

3839
Visit the `Database > Rules` section (https://console.firebase.google.com/project/${projectId}/database/rules).
39-
Make sure the rules look like this (it should be the default):
40+
The rules should look like this:
4041

4142
```
4243
{
@@ -47,6 +48,19 @@ Make sure the rules look like this (it should be the default):
4748
}
4849
```
4950

51+
This default should work fine, but will give you email warnings about security. You can silence these emails in settings, or add an extra layer of security:
52+
53+
```
54+
{
55+
"rules": {
56+
".read": "auth != null && auth.uid == '<UID in Auth Page>'",
57+
".write": "auth != null && auth.uid == '<UID in Auth Page>'"
58+
}
59+
}
60+
```
61+
62+
See [here](https://github.com/WuTheFWasThat/vimflowy/issues/370) for details
63+
5064
### Configure Vimflowy
5165

5266
Now, in the general settings menu (https://console.firebase.google.com/project/${projectId}/settings/general/)

0 commit comments

Comments
 (0)