From 0c9ccae17d390621794e5e93c4ee9e6cb87e1a44 Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Sat, 13 Jan 2024 15:27:56 +0800 Subject: [PATCH] add autogptweb --- apps/autogptnextweb/.env | 43 ++++++++++++++++++++++++++ apps/autogptnextweb/CHANGELOG.md | 5 +++ apps/autogptnextweb/Notes.md | 3 ++ apps/autogptnextweb/docker-compose.yml | 17 ++++++++++ apps/autogptnextweb/variables.json | 20 ++++++++++++ apps/chatgptnextweb/docker-compose.yml | 2 +- 6 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 apps/autogptnextweb/.env create mode 100644 apps/autogptnextweb/CHANGELOG.md create mode 100644 apps/autogptnextweb/Notes.md create mode 100644 apps/autogptnextweb/docker-compose.yml create mode 100644 apps/autogptnextweb/variables.json diff --git a/apps/autogptnextweb/.env b/apps/autogptnextweb/.env new file mode 100644 index 000000000..e59c5152f --- /dev/null +++ b/apps/autogptnextweb/.env @@ -0,0 +1,43 @@ +W9_DIST=community +W9_REPO=dogtititi/autogpt-next-web +W9_VERSION=latest +W9_POWER_PASSWORD=1PrMxExC45LsCT + +#### -- Not allowed to edit below environments when recreate app based on existing data -- #### +W9_ID=autogptnextweb +W9_HTTP_PORT=3000 +W9_HTTP_PORT_SET=9001 +W9_URL=Internet_IP +W9_NETWORK=websoft9 + +#### --------------------------------------------------------------------------------------- #### + +# Deployment Environment: +NODE_ENV=development + +# Next Auth config: +# Generate a secret with `openssl rand -base64 32`, or visit https://generate-secret.vercel.app/ +NEXTAUTH_SECRET=*** +NEXTAUTH_URL=http://localhost:3000 + +# Prisma +DATABASE_URL=file:./db.sqlite + +# External APIs: +OPENAI_API_KEY=*** + +# Guest Mode: +The key NEXT_PUBLIC_GUEST_KEY should be in this format: abc,qwe,123, where each comma-separated value can be used +NEXT_PUBLIC_GUEST_KEY=*** + +# Websearch. Fill both of these values to enable it locally +NEXT_PUBLIC_WEB_SEARCH_ENABLED=false # Disables the ability to toggle web search +SERP_API_KEY=*** # https://serper.dev/ for an API key + +# Auth providers. Required to enable sign in, in production. Development mode uses local auth. +GOOGLE_CLIENT_ID=*** +GOOGLE_CLIENT_SECRET=*** +GITHUB_CLIENT_ID=*** +GITHUB_CLIENT_SECRET=*** +DISCORD_CLIENT_SECRET=*** +DISCORD_CLIENT_ID=*** \ No newline at end of file diff --git a/apps/autogptnextweb/CHANGELOG.md b/apps/autogptnextweb/CHANGELOG.md new file mode 100644 index 000000000..582cf46c5 --- /dev/null +++ b/apps/autogptnextweb/CHANGELOG.md @@ -0,0 +1,5 @@ +# CHANGELOG + +## Release +### Fixes and Enhancements + diff --git a/apps/autogptnextweb/Notes.md b/apps/autogptnextweb/Notes.md new file mode 100644 index 000000000..7a6f1873c --- /dev/null +++ b/apps/autogptnextweb/Notes.md @@ -0,0 +1,3 @@ +# autogptnextweb + +安装后自行到web界面中填写秘钥或密码 \ No newline at end of file diff --git a/apps/autogptnextweb/docker-compose.yml b/apps/autogptnextweb/docker-compose.yml new file mode 100644 index 000000000..f9d00b108 --- /dev/null +++ b/apps/autogptnextweb/docker-compose.yml @@ -0,0 +1,17 @@ +# compose: https://github.com/ConnectAI-E/AutoGPT-Next-Web/blob/main/docker-compose.prod.yml + +version: '3.8' + +services: + autogpt-next-web: + image: $W9_REPO:${W9_VERSION} + container_name: ${W9_ID} + restart: unless-stopped + env_file: .env + ports: + - $W9_HTTP_PORT_SET:3000 + +networks: + default: + name: ${W9_NETWORK} + external: true \ No newline at end of file diff --git a/apps/autogptnextweb/variables.json b/apps/autogptnextweb/variables.json new file mode 100644 index 000000000..816d9d43c --- /dev/null +++ b/apps/autogptnextweb/variables.json @@ -0,0 +1,20 @@ +{ + "name": "autogptnextweb", + "trademark": "AutoGPT-Next-Web", + "release": true, + "fork_url": "https://github.com/ConnectAI-E/AutoGPT-Next-Web", + "edition": [ + { + "dist": "community", + "version": [ + "latest" + ] + } + ], + "requirements": { + "cpu": "1", + "memory": "1", + "disk": "1", + "url": "https://github.com/ConnectAI-E/AutoGPT-Next-Web" + } +} diff --git a/apps/chatgptnextweb/docker-compose.yml b/apps/chatgptnextweb/docker-compose.yml index 136f7e97a..e94b72248 100644 --- a/apps/chatgptnextweb/docker-compose.yml +++ b/apps/chatgptnextweb/docker-compose.yml @@ -9,7 +9,7 @@ services: restart: unless-stopped env_file: .env ports: - - $W9_HTTP_PORT_SET:$W9_HTTP_PORT + - $W9_HTTP_PORT_SET:3000 networks: default: