Skip to Content
DocumentationEnvironment

Environment Variable Configuration

Some variables in this system are configured using environment variables to facilitate deployment across different environments, so it is extremely important to set them correctly!

Root Directory .env

NameDescription
OAUTH_SECRET_KEYSecret key for JWT user authentication system
POSTGRES_USERPostgreSQL username
POSTGRES_PASSWORDPostgreSQL password
POSTGRES_DBPostgreSQL database name
POSTGRES_DB_URLPostgreSQL database URL
MILVUS_CLUSTER_ENDPOINTMilvus cluster address
MILVUS_TOKENMilvus authentication token
FILE_SYSTEM_USER_NAMEFile system username
FILE_SYSTEM_PASSWORDFile system password
FILE_SYSTEM_SERVER_PRIVATE_URLFile system service address (Docker internal)
FILE_SYSTEM_SERVER_PUBLIC_URLFile system service address (public network)
NEO4J_AUTHNeo4j authentication
ETCD_ENDPOINTSetcd cluster endpoints
ETCD_AUTO_COMPACTION_MODEEnable etcd auto-compaction mode
ETCD_AUTO_COMPACTION_RETENTIONRevisions to retain during compaction
ETCD_QUOTA_BACKEND_BYTESetcd backend DB storage quota
ETCD_SNAPSHOT_COUNTTransactions to write before snapshot
MILVUS_MINIO_USER_NAMEMinIO username for Milvus service
MILVUS_MINIO_PASSWORDMinIO password for Milvus service
REDIS_URLRedis connection URL
REDIS_PORTRedis connection port
HF_ENDPOINTHuggingFace service endpoint
NEXT_PUBLIC_API_PREFIXCore backend service prefix
NEXT_PUBLIC_NOTIFICATION_WS_API_PREFIXFile service interface prefix
NEXT_PUBLIC_DAILY_HOT_API_PREFIXTrending service interface prefix

Web Service

NameDescription
NEXT_PUBLIC_API_PREFIXCore backend service prefix
NEXT_PUBLIC_NOTIFICATION_WS_API_PREFIXWebSocket interface prefix of real-time notification
NEXT_PUBLIC_DAILY_HOT_API_PREFIXTrending service interface prefix

API Service

NameDescription
OAUTH_SECRET_KEYSecret key for JWT user authentication system
REDIS_URLRedis connection URL
REDIS_PASSWORDRedis connection password
REDIS_PORTRedis connection port
POSTGRES_USERPostgreSQL username
POSTGRES_PASSWORDPostgreSQL password
POSTGRES_DBPostgreSQL database name
POSTGRES_DB_URLPostgreSQL database URL
MILVUS_CLUSTER_ENDPOINTMilvus connection address
MILVUS_TOKENMilvus authentication token
FILE_SYSTEM_USER_NAMEFile system username
FILE_SYSTEM_PASSWORDFile system password
FILE_SYSTEM_SERVER_PRIVATE_URLFile system service address (Docker internal)
FILE_SYSTEM_SERVER_PUBLIC_URLFile system service address (public network)

celery-worker

NameDescription
OAUTH_SECRET_KEYSecret key for JWT user authentication system
REDIS_URLRedis connection URL
REDIS_PASSWORDRedis connection password
REDIS_PORTRedis connection port
POSTGRES_USERPostgreSQL username
POSTGRES_PASSWORDPostgreSQL password
POSTGRES_DBPostgreSQL database name
POSTGRES_DB_URLPostgreSQL database URL
MILVUS_CLUSTER_ENDPOINTMilvus connection address
MILVUS_TOKENMilvus authentication token
FILE_SYSTEM_USER_NAMEFile system username
FILE_SYSTEM_PASSWORDFile system password
FILE_SYSTEM_SERVER_PRIVATE_URLFile system service address (Docker internal)
FILE_SYSTEM_SERVER_PUBLIC_URLFile system service address (public network)
Last updated on