mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-24 13:00:45 +03:00
add readme
This commit is contained in:
@@ -86,6 +86,15 @@ Flowise has 3 different modules in a single mono repository.
|
||||
|
||||
Any code changes will reload the app automatically on [http://localhost:8080](http://localhost:8080)
|
||||
|
||||
## 🔒 Authentication
|
||||
|
||||
To enable app level authentication, add `USERNAME` and `PASSWORD` to the `.env` file in `packages/server`:
|
||||
|
||||
```
|
||||
USERNAME=user
|
||||
PASSWORD=1234
|
||||
```
|
||||
|
||||
## 📖 Documentation
|
||||
|
||||
Coming soon
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
PORT=3000
|
||||
# USERNAME=user
|
||||
# PASSWORD=1234
|
||||
@@ -20,6 +20,15 @@ Drag & drop UI to build your customized LLM flow using [LangchainJS](https://git
|
||||
|
||||
3. Open [http://localhost:3000](http://localhost:3000)
|
||||
|
||||
## 🔒 Authentication
|
||||
|
||||
To enable app level authentication, add `USERNAME` and `PASSWORD` to the `.env` file:
|
||||
|
||||
```
|
||||
USERNAME=user
|
||||
PASSWORD=1234
|
||||
```
|
||||
|
||||
## 📖 Documentation
|
||||
|
||||
Coming Soon
|
||||
|
||||
@@ -76,7 +76,7 @@ export class App {
|
||||
const basicAuthMiddleware = basicAuth({
|
||||
users: { [username]: password }
|
||||
})
|
||||
const whitelistURLs = ['node-icon', 'static', 'favicon']
|
||||
const whitelistURLs = ['static', 'favicon', '/api/v1/prediction/', '/api/v1/node-icon/']
|
||||
this.app.use((req, res, next) =>
|
||||
whitelistURLs.some((url) => req.url.includes(url)) || req.url === '/' ? next() : basicAuthMiddleware(req, res, next)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user