Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update firestore.rules. #770

Merged
merged 1 commit into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions demos/firebase-streams-ext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Required Google Cloud services:
4. Run the ngrok to forward requests from an internet address to your localhost:
* `cd functions`
* `yarn run ngrok`
5. Determine the **public webook URL**. The URL has hostname and port from the ngrok, and the path from the local webhook URL. This URL will be needed in the next step.\
5. Determine the **public webhook URL**. The URL has hostname and port from the ngrok, and the path from the local webhook URL. This URL will be needed in the next step.\
For example: `https://baa0-89-151-39-84.ngrok.io/moralis-x6/us-central1/ext-moralis-streams-webhook`
6. We need to add some streams to see the demo in action. Open the Moralis admin panel and add below streams.
* **ERC20 Transfers** stream:
Expand Down Expand Up @@ -63,11 +63,7 @@ rules_version = '2';

service cloud.firestore {
match /databases/{database}/documents {
match /moralis/events/{name}/{id} {
allow read;
allow write: if false;
}
match /moralis/txs/{name}/{id} {
match /moralis/{collectionType}/{collectionName}/{id} {
allow read;
allow write: if false;
}
Expand Down
6 changes: 1 addition & 5 deletions demos/firebase-streams-ext/firestore.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ rules_version = '2';

service cloud.firestore {
match /databases/{database}/documents {
match /moralis/events/{name}/{id} {
allow read;
allow write: if false;
}
match /moralis/txs/{name}/{id} {
match /moralis/{collectionType}/{collectionName}/{id} {
allow read;
allow write: if false;
}
Expand Down