fix (examples/react-apollo): fix settings (#3301)

### **PR Type**
Enhancement, Configuration changes


___

### **Description**
- Update auth settings in nhost.toml

- Remove rate limiting configurations

- Remove SMTP provider settings

- Add changeset for patch version bump


___



### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Documentation</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>lazy-years-kneel.md</strong><dd><code>Add changeset for
patch version bump</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

.changeset/lazy-years-kneel.md

<li>Add new changeset file for patch version bump<br> <li> Specify
'@nhost-examples/react-apollo' package<br> <li> Include fix description


</details>


  </td>
<td><a
href="https://github.com/nhost/nhost/pull/3301/files#diff-019ff1fe3f65a591a01a6cbc0fa05c44c065e2611417ac0b3dcf6bd5a6eda7c2">+5/-0</a>&nbsp;
&nbsp; &nbsp; </td>

</tr>
</table></td></tr><tr><td><strong>Configuration
changes</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>nhost.toml</strong><dd><code>Update Nhost configuration
settings</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

examples/react-apollo/nhost/nhost.toml

<li>Change auth.elevatedPrivileges.mode to 'recommended'<br> <li> Remove
auth.rateLimit configurations<br> <li> Remove provider.smtp settings<br>
<li> Update allowed URLs for auth redirections


</details>


  </td>
<td><a
href="https://github.com/nhost/nhost/pull/3301/files#diff-268d6c8dddd6990d60d62c1c923955c4e0e7549a80f0f5856192f889378416a0">+1/-30</a>&nbsp;
&nbsp; </td>

</tr>
</table></td></tr></tr></tbody></table>

___

> <details> <summary> Need help?</summary><li>Type <code>/help how to
...</code> in the comments thread for any questions about PR-Agent
usage.</li><li>Check out the <a
href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a>
for more information.</li></details>
This commit is contained in:
David Barroso
2025-05-12 19:30:59 +02:00
committed by GitHub
parent a0931e282f
commit 97db63791b
3 changed files with 44 additions and 29 deletions

View File

@@ -0,0 +1,5 @@
---
'@nhost-examples/react-apollo': patch
---
fix: fix settings

View File

@@ -47,27 +47,6 @@ disableNewUsers = false
default = 'user'
allowed = ['user', 'me']
[auth.rateLimit]
[auth.rateLimit.emails]
limit = 100
interval = '1h'
[auth.rateLimit.sms]
limit = 100
interval = '1h'
[auth.rateLimit.bruteForce]
limit = 100
interval = '5m'
[auth.rateLimit.signups]
limit = 100
interval = '5m'
[auth.rateLimit.global]
limit = 1000
interval = '1m'
[auth.user.locale]
default = 'en'
allowed = ['en']
@@ -182,14 +161,6 @@ version = '16.6-20250311-1'
capacity = 1
[provider]
[provider.smtp]
host = "smtp.test.com"
method = "LOGIN"
password = "test123123"
port = 587
secure = false
sender = "test@nhost.io"
user = "test"
[storage]
version = '0.7.1'

View File

@@ -35,6 +35,32 @@
"op": "replace",
"path": "/auth/method/webauthn/relyingParty/origins/0"
},
{
"value": {
"bruteForce": {
"interval": "5m",
"limit": 100
},
"emails": {
"interval": "1h",
"limit": 100
},
"global": {
"interval": "1m",
"limit": 1000
},
"signups": {
"interval": "5m",
"limit": 100
},
"sms": {
"interval": "1h",
"limit": 100
}
},
"op": "add",
"path": "/auth/rateLimit"
},
{
"value": "http://localhost:3000",
"op": "replace",
@@ -77,5 +103,18 @@
"value": "http://localhost:3000",
"op": "replace",
"path": "/auth/redirections/clientUrl"
},
{
"value": {
"host": "smtp.test.com",
"method": "LOGIN",
"password": "test123123",
"port": 587,
"secure": false,
"sender": "test@nhost.io",
"user": "test"
},
"op": "add",
"path": "/provider/smtp"
}
]