Skip to content

Adding a Password #246

Answered by KiraLT
gsandaru asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can set a master password and you will be required to enter it when accessing User Interface or using API.

Check Security docs for more information.

Env variable

The easiest way to set API key is via ENV variable:

API_KEY="my password"

Configuration file

You can also add apiKey to configuration file:

{
    "security": {
        "apiKey": "my password",
    }
}

To use the config file you will need to pass JSON config file to any run command with -c option (e.g. npm run start -c config.json).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KiraLT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants