Skip to Content
DocumentationEnvironment Variable Settings

Environment Variable Settings

Most variables in this system use environment variables to facilitate deployment in different environments, so correct configuration of this part is extremely important!

Web Service

NameDescription
NEXT_PUBLIC_API_PREFIXCore backend service
NEXT_PUBLIC_NOTIFICATION_WS_API_PREFIXWebSocket interface for real-time notification service
NEXT_PUBLIC_FILE_API_PREFIXFile service
NEXT_PUBLIC_DAILY_HOT_API_PREFIXDaily hot search service

API Service

NameDescription
SECRET_KEYJWT mechanism key for user authentication
ALGORITHMJWT encryption algorithm
ACCESS_TOKEN_EXPIRE_MINUTESUser access_token expiration time
REFRESH_TOKEN_EXPIRE_MINUTESUser refresh_token expiration time
MAIL_SENDEREmail account
MAIL_PASSWORDEmail password
REDIS_URLRedis connection address
REDIS_PASSWORDRedis connection password
REDIS_PORTRedis connection port
USER_NAMEMySQL username
PASSWORDMySQL password
DATABASE_URLMySQL host
DATABASE_NAMEMySQL database name
JINA_API_TOKENJina API key
MILVUS_CLUSTER_ENDPOINTMilvus connection address
MILVUS_TOKENMilvus connection token
FILE_SERVER_URLFile service address

File Backend

NameDescription
SECRET_KEYJWT mechanism key for user authentication
ALGORITHMJWT encryption algorithm
ACCESS_TOKEN_EXPIRE_MINUTESUser access_token expiration time
REFRESH_TOKEN_EXPIRE_MINUTESUser refresh_token expiration time
USER_NAMEMySQL username
PASSWORDMySQL password
DATABASE_URLMySQL host
DATABASE_NAMEMySQL database name

Celery Worker

NameDescription
SECRET_KEYJWT mechanism key for user authentication
ALGORITHMJWT encryption algorithm
ACCESS_TOKEN_EXPIRE_MINUTESUser access_token expiration time
REFRESH_TOKEN_EXPIRE_MINUTESUser refresh_token expiration time
MAIL_SENDEREmail account
MAIL_PASSWORDEmail password
REDIS_URLRedis connection address
REDIS_PASSWORDRedis connection password
REDIS_PORTRedis connection port
USER_NAMEMySQL username
PASSWORDMySQL password
DATABASE_URLMySQL host
DATABASE_NAMEMySQL database name
JINA_API_TOKENJina API key
MILVUS_CLUSTER_ENDPOINTMilvus connection address
MILVUS_TOKENMilvus connection token
FILE_SERVER_URLFile service address
Last updated on