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.
 (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png)
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
dockerfolder
cd docker
- Create
.envfile and specify thePORT,FLOWISE_USERNAME, andFLOWISE_PASSWORD
PORT=3000
FLOWISE_USERNAME=user
FLOWISE_PASSWORD=1234
- Pass
FLOWISE_USERNAMEandFLOWISE_PASSWORDto thedocker-compose.ymlfile:
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