[server][xary] - 优化实际配置

This commit is contained in:
zeaslity
2023-03-07 10:27:46 +08:00
parent 32c46c56a7
commit a18f2353a9
9 changed files with 314 additions and 673 deletions

View File

@@ -1,10 +1,11 @@
version: '3'
services:
app:
chatgpt:
image: chenzhaoyu94/chatgpt-web # 总是使用 latest ,更新时重新 pull 该 tag 镜像即可
ports:
- 3002:3002
# ports:
# - 3002:3002
network_mode: host
environment:
# 二选一
OPENAI_API_KEY: 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
@@ -19,4 +20,6 @@ services:
# Socks代理可选和 SOCKS_PROXY_PORT 一起时生效
#SOCKS_PROXY_HOST: xxxx
# Socks代理端口可选和 SOCKS_PROXY_HOST 一起时生效
#SOCKS_PROXY_PORT: xxxx
#SOCKS_PROXY_PORT: xxxx

View File

@@ -14,6 +14,7 @@ server {
ssl_prefer_server_ciphers off;
location / {
proxy_pass http://127.0.0.1:3002;
proxy_pass http://140.238.52.228:3002;
}
}

View File

@@ -1,10 +1,10 @@
{
"schedulerUuid": "",
"name": "CPU负载任务",
"cronExpress": "0 0 2 * * ? *",
"cronExpress": "0 20 17 * * ? *",
"description": "在每天凌晨2点执行CPU负载任务执行时间为2小时",
"scriptContent": "apt-get,install,cpulimit,-y\nmkdir,-p,/octopus-agent/shell/function\nwget,https://raw.githubusercontent.com/zeaslity/ProjectOctopus/main/source/src/main/java/io/wdd/source/shell/function/load50cpu_2_hour.sh,-O,/octopus-agent/shell/function/load50cpu_2_hour.sh\nchmod,+x,/octopus-agent/shell/function/load50cpu_2_hour.sh\ncpulimit,-l,30,/octopus-agent/shell/function/load50cpu_2_hour.sh,>,/dev/null,&",
"targetMachine": "Phoenix-amd64-02,Phoenix-arm64-01,Phoenix-arm64-02,London-amd64-01,London-amd64-02,London-arm64-02",
"scriptContent": "wget https://happybirthday.107421.xyz/shell/function/load50cpu_2_hour.sh -O /octopus-agent/shell/function/load50cpu_2_hour.sh\nchmod +x /octopus-agent/shell/function/load50cpu_2_hour.sh\n\ncpulimit -l 50 /octopus-agent/shell/function/load50cpu_2_hour.sh > /dev/null &",
"targetMachine": "Phoenix-arm64-01-52c2f4, Phoenix-arm64-02-7b95ac, London-arm64-02-9ee6ba, London-amd64-01-0b219f, London-amd64-02-c155d1, London-arm64-01-72519e, Phoenix-amd64-02-2a45bb, Seoul-amd64-04-f301ac, Tokyo-amd64-02-439bec, Tokyo-amd64-01-c6bbd1, Tokyo-arm64-01-bf3b08",
"lastExecutionId": null,
"lastExecutionResultKey": "",
"lastExecutionStatus": null,