Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

合并:优化actions和细节调整 #14

Merged
merged 24 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
更新:优化注释和文档
  • Loading branch information
guobao2333 committed Sep 13, 2024
commit cc95f1122785f7d7f480de2312656011efe5c36b
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ docker run -d -p 9000:9000 ghcr.io/guobao2333/deeplx-serverless

你还可以自己构建后运行:
```bash
docker build -t deeplx-api .
docker run -d -p 9000:9000 deeplx-api
docker build -t deeplx-serverless .
docker run -d -p 9000:9000 deeplx-serverless
```

#### Self hosting | 源码部署
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const app = express(),
PORT = 9000,
allowAlternative = true,
CORS = {
origin: false, // 还支持指定多个域名或正则表达式
origin: false, // 默认关闭跨域访问,还支持指定多个域名或正则表达式
methods: 'GET,POST',
allowedHeaders: 'Content-Type',
preflightContinue: false
Expand Down