diff --git a/README.MD b/README.MD index d22025a..1c20ee6 100644 --- a/README.MD +++ b/README.MD @@ -166,8 +166,9 @@ go run ./cmd/ds2api ### 方式二:Docker 运行 ```bash -# 1. 准备环境变量文件 +# 1. 准备环境变量和配置文件 cp .env.example .env +cp config.example.json config.json # 2. 编辑 .env(至少设置 DS2API_ADMIN_KEY) # DS2API_ADMIN_KEY=请替换为强密码 diff --git a/README.en.md b/README.en.md index cf2e376..34bc615 100644 --- a/README.en.md +++ b/README.en.md @@ -166,8 +166,9 @@ Default URL: `http://localhost:5001` ### Option 2: Docker ```bash -# 1. Prepare env file +# 1. Prepare env file and config file cp .env.example .env +cp config.example.json config.json # 2. Edit .env (at least set DS2API_ADMIN_KEY) # DS2API_ADMIN_KEY=replace-with-a-strong-secret diff --git a/docs/DEPLOY.en.md b/docs/DEPLOY.en.md index 917bd71..855af36 100644 --- a/docs/DEPLOY.en.md +++ b/docs/DEPLOY.en.md @@ -111,8 +111,9 @@ go build -o ds2api ./cmd/ds2api ### 2.1 Basic Steps ```bash -# Copy env template +# Copy env template and config file cp .env.example .env +cp config.example.json config.json # Edit .env and set at least: # DS2API_ADMIN_KEY=your-admin-key diff --git a/docs/DEPLOY.md b/docs/DEPLOY.md index 61b50f0..3082da7 100644 --- a/docs/DEPLOY.md +++ b/docs/DEPLOY.md @@ -111,8 +111,9 @@ go build -o ds2api ./cmd/ds2api ### 2.1 基本步骤 ```bash -# 复制环境变量模板 +# 复制环境变量模板和配置文件 cp .env.example .env +cp config.example.json config.json # 编辑 .env(请改成你的强密码),至少设置: # DS2API_ADMIN_KEY=your-admin-key