App Level
App level authorization protects your Flowise instance by username and password. This protects your apps from being accessible by anyone when deployed online.
How to Set Username & Password
Npm
- Install Flowise
npm install -g flowise
- Start Flowise with username & password
npx flowise start --FLOWISE_USERNAME=user --FLOWISE_PASSWORD=1234
Docker
- Navigate to
docker
folder
cd docker
- Create
.env
file and specify thePORT
,FLOWISE_USERNAME
, andFLOWISE_PASSWORD
PORT=3000
FLOWISE_USERNAME=user
FLOWISE_PASSWORD=1234
- Pass
FLOWISE_USERNAME
andFLOWISE_PASSWORD
to thedocker-compose.yml
file:
environment:
- PORT=${PORT}
- FLOWISE_USERNAME=${FLOWISE_USERNAME}
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD}
docker compose up -d
- Open http://localhost:3000
- You can bring the containers down by
docker compose stop
Git clone
To enable app level authentication, add FLOWISE_USERNAME
and FLOWISE_PASSWORD
to the .env
file in packages/server
:
FLOWISE_USERNAME=user
FLOWISE_PASSWORD=1234