Back to Nocobase

API Keys

docs/docs/en/auth-verification/api-keys/index.md

2.0.51905 B
Original Source

API Keys

Introduction

Usage Instructions

http://localhost:13000/admin/settings/api-keys/configuration

Add API Key

Notes

  • The API key is created for the current user and inherits the user's role.
  • Please make sure that the APP_KEY environment variable has been configured and is kept confidential. If the APP_KEY changes, all added API keys will become invalid.

How to configure APP_KEY

For the docker version, modify the docker-compose.yml file

diff
services:
  app:
    image: nocobase/nocobase:main
    environment:
+     - APP_KEY=4jAokvLKTJgM0v_JseUkJ

For the source code or create-nocobase-app installation, you can directly modify the APP_KEY in the .env file

bash
APP_KEY=4jAokvLKTJgM0v_JseUkJ