2023-03-11 15:03:18 +08:00
|
|
|
# Server configuration.
|
|
|
|
# The server will listen to localhost:3080 request by default. You can set the target ip as you want.
|
|
|
|
# If you want this server can be used outside your local machine, for example to share with other
|
|
|
|
# machine or expose this from a docker container, set HOST=0.0.0.0 or your external ip interface.
|
|
|
|
#
|
|
|
|
# Tips: HOST=0.0.0.0 means listening on all interface. It's not a real ip. Use localhost:port rather
|
|
|
|
# than 0.0.0.0:port to open it.
|
|
|
|
HOST=localhost
|
2023-03-06 15:56:25 -05:00
|
|
|
PORT=3080
|
|
|
|
NODE_ENV=development
|
2023-03-10 21:05:35 +08:00
|
|
|
|
2023-03-11 15:03:18 +08:00
|
|
|
# Change this to proxy any API request. It's useful if your machine have difficulty calling the original API server.
|
|
|
|
# PROXY="http://YOUR_PROXY_SERVER"
|
|
|
|
|
2023-03-06 21:12:36 -05:00
|
|
|
# Change this to your MongoDB URI if different and I recommend appending chatgpt-clone
|
|
|
|
MONGO_URI="mongodb://127.0.0.1:27017/chatgpt-clone"
|
2023-03-10 21:05:35 +08:00
|
|
|
|
2023-03-11 15:03:18 +08:00
|
|
|
# API key configuration.
|
|
|
|
# Leave blank if you don't want them.
|
|
|
|
OPENAI_KEY=
|
|
|
|
CHATGPT_TOKEN=
|
2023-03-13 22:45:02 +09:00
|
|
|
BING_TOKEN=
|
2023-03-14 01:24:43 +08:00
|
|
|
|
2023-03-21 19:44:31 -04:00
|
|
|
# Enable Message/Convo Search
|
|
|
|
# Requires installation of self-hosted Meilisearch or Paid Remote Plan
|
|
|
|
# this is taken care of you if you use the docker-compose file.
|
|
|
|
# SEARCH=TRUE
|
|
|
|
SEARCH=
|
2023-03-22 17:15:32 -04:00
|
|
|
MEILI_HOST='http://0.0.0.0:7700'
|
|
|
|
MEILI_HTTP_ADDR='0.0.0.0:7700'
|
2023-03-22 10:23:55 -04:00
|
|
|
# needs a secure key, feel free to generate your own.
|
|
|
|
MEILI_MASTER_KEY=WjRvKvpelIYHa4dlcDGsdT9c0CKRbY-4VcuCQ1iZPcc
|
2023-03-14 01:24:43 +08:00
|
|
|
|
2023-03-21 19:44:31 -04:00
|
|
|
# User System
|
2023-03-14 01:24:43 +08:00
|
|
|
# global enable/disable the sample user system.
|
|
|
|
# this is not a ready to use user system.
|
|
|
|
# dont't use it, unless you can write your own code.
|
2023-03-21 19:44:31 -04:00
|
|
|
ENABLE_USER_SYSTEM=
|