Add instruction to setup Rate Limit

This commit is contained in:
chungyau97
2023-09-13 10:59:05 +08:00
parent 0a5d453338
commit b3e4e35309
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ export class App {
this.app.get('/api/v1/ip', (request, response) => {
response.send({
ip: request.ip,
msg: 'See the IP returned in the response. If it matches your IP address (which you can get by going to http://ip.nfriedly.com/ or https://api.ipify.org/), then the number of proxies is correct and the rate limiter should now work correctly. If not, then keep increasing the number until it does.'
msg: 'See the returned IP address in the response. If it matches your current IP address ( which you can get by going to http://ip.nfriedly.com/ or https://api.ipify.org/ ), then the number of proxies is correct and the rate limiter should now work correctly. If not, increase the number of proxies by 1 until the IP address matches your own. Visit https://docs.flowiseai.com/deployment#rate-limit-setup-guide for more information.'
})
})
@@ -16,6 +16,7 @@ import chatflowsApi from 'api/chatflows'
// utils
import useNotifier from 'utils/useNotifier'
import { TooltipWithParser } from 'ui-component/tooltip/TooltipWithParser'
const Configuration = () => {
const dispatch = useDispatch()
@@ -131,7 +132,13 @@ const Configuration = () => {
<>
{/*Rate Limit*/}
<Typography variant='h4' sx={{ mb: 1, mt: 2 }}>
Rate Limit
Rate Limit{' '}
<TooltipWithParser
style={{ mb: 1, mt: 2, marginLeft: 10 }}
title={
'Visit <a target="_blank" href="https://docs.flowiseai.com/deployment#rate-limit-setup-guide">Rate Limit Setup Guide</a> to set up Rate Limit correctly in your hosting environment.'
}
/>
</Typography>
{textField(limitMax, 'limitMax', 'Message Limit per Duration', 'number')}
{textField(limitDuration, 'limitDuration', 'Duration in Second', 'number')}