mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
Add instruction to setup Rate Limit
This commit is contained in:
@@ -142,7 +142,7 @@ export class App {
|
|||||||
this.app.get('/api/v1/ip', (request, response) => {
|
this.app.get('/api/v1/ip', (request, response) => {
|
||||||
response.send({
|
response.send({
|
||||||
ip: request.ip,
|
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
|
// utils
|
||||||
import useNotifier from 'utils/useNotifier'
|
import useNotifier from 'utils/useNotifier'
|
||||||
|
import { TooltipWithParser } from 'ui-component/tooltip/TooltipWithParser'
|
||||||
|
|
||||||
const Configuration = () => {
|
const Configuration = () => {
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
@@ -131,7 +132,13 @@ const Configuration = () => {
|
|||||||
<>
|
<>
|
||||||
{/*Rate Limit*/}
|
{/*Rate Limit*/}
|
||||||
<Typography variant='h4' sx={{ mb: 1, mt: 2 }}>
|
<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>
|
</Typography>
|
||||||
{textField(limitMax, 'limitMax', 'Message Limit per Duration', 'number')}
|
{textField(limitMax, 'limitMax', 'Message Limit per Duration', 'number')}
|
||||||
{textField(limitDuration, 'limitDuration', 'Duration in Second', 'number')}
|
{textField(limitDuration, 'limitDuration', 'Duration in Second', 'number')}
|
||||||
|
|||||||
Reference in New Issue
Block a user