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

部署完成访问5173之后可以进入页面,但是在注册页面注册账户时没反应 #306

Open
2904202165 opened this issue Dec 31, 2024 · 16 comments
Labels
Status: Needs more info Requires more context Type: Duplicate This issue or pull request already exists

Comments

@2904202165
Copy link

image

@2904202165
Copy link
Author

我用的docker部署

@WiKiBIRD
Copy link

WiKiBIRD commented Jan 1, 2025

我用的docker部署

你應該是改了5432和6379的默認端口,在.ENV裡用默認端口應該可以解決問題。

@2904202165
Copy link
Author

我用的docker部署

你應該是改了5432和6379的默認端口,在.ENV裡用默認端口應該可以解決問題。

因为我用宝塔部署的,5432和6379被占用了,不得不改,但是不知道怎么弄现在

@2904202165
Copy link
Author

image

@WiKiBIRD
Copy link

WiKiBIRD commented Jan 2, 2025

我用的docker部署

你應該是改了5432和6379的默認端口,在.ENV裡用默認端口應該可以解決問題。

因为我用宝塔部署的,5432和6379被占用了,不得不改,但是不知道怎么弄现在

那你compose and evn 都改為同一個自定義端口看看。例如55432:55432,66379:66379

@WiKiBIRD
Copy link

WiKiBIRD commented Jan 2, 2025

image

DB_HOST=POSTGRES 這個不要改,還有下面那個MINI O_ENDPOINT也不要改試試。

@amhsirak amhsirak added the Status: Needs more info Requires more context label Jan 2, 2025
@amhsirak
Copy link
Member

amhsirak commented Jan 2, 2025

@2904202165 Hi, are you able to register now? If not, can you provide logs? Run docker-compose logs. Thanks

@amhsirak amhsirak added the Type: Duplicate This issue or pull request already exists label Jan 2, 2025
@amhsirak
Copy link
Member

amhsirak commented Jan 3, 2025

@2904202165 checkout #305

@2904202165
Copy link
Author

@2904202165 checkout #305

好的好的,我试试,谢谢您

@2904202165
Copy link
Author

@2904202165 checkout #305

你好,我这样改的,注册的时候还是没反应:是不是宝塔部署的缘故
image

@2904202165
Copy link
Author

图像

DB_HOST=POSTGRES 這個不要改,還有下面那個MINI O_ENDPOINT也不要改試試。

还是不行

@2904202165
Copy link
Author

image
image
image
image
image
这是日志信息,麻烦您看一下

@WiKiBIRD
Copy link

WiKiBIRD commented Jan 3, 2025

image
image
image
image
image
这是日志信息,麻烦您看一下

你Compose裡的volume有沒有指定地址?
等一下,我把我的compose貼上來,你參考一下吧。

@WiKiBIRD
Copy link

WiKiBIRD commented Jan 3, 2025

COMPOSE:

`version: '3.8'

services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "${DB_PORT:-5432}:${DB_PORT:-5432}"
volumes:
- /share/CACHEDEV4_DATA/maxun/postgres_data:/var/lib/postgresql/data
network_mode: bridge
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5

redis:
image: redis:6
environment:
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
ports:
- "${REDIS_PORT:-6379}:${REDIS_PORT:-6379}"
volumes:
- /share/CACHEDEV4_DATA/maxun/redis_data:/data
network_mode: bridge

minio:
image: minio/minio
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
command: server /data --console-address :${MINIO_CONSOLE_PORT:-9001}
ports:
- "${MINIO_PORT:-9000}:${MINIO_PORT:-9000}" # API port
- "${MINIO_CONSOLE_PORT:-9001}:${MINIO_CONSOLE_PORT:-9001}" # WebUI port
volumes:
- /share/CACHEDEV4_DATA/maxun/minio_data:/data
network_mode: bridge

backend:
# build:
# context: .
# dockerfile: server/Dockerfile
image: getmaxun/maxun-backend:v0.0.9
ports:
- "${BACKEND_PORT:-8080}:${BACKEND_PORT:-8080}"
env_file: .env
environment:
BACKEND_URL: ${BACKEND_URL}
# to ensure Playwright works in Docker
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 0
# DEBUG: pw:api
# PWDEBUG: 1 # Enables debugging
CHROMIUM_FLAGS: '--disable-gpu --no-sandbox --headless=new'
security_opt:
- seccomp=unconfined # This might help with browser sandbox issues
shm_size: '2gb' # Increase shared memory size for Chromium
mem_limit: 2g # Set a 2GB memory limit
depends_on:
- postgres
- redis
- minio
volumes:
- /var/run/dbus:/var/run/dbus
network_mode: bridge

frontend:
# build:
# context: .
# dockerfile: Dockerfile
image: getmaxun/maxun-frontend:v0.0.5
ports:
- "${FRONTEND_PORT:-5173}:${FRONTEND_PORT:-5173}"
env_file: .env
environment:
PUBLIC_URL: ${PUBLIC_URL}
BACKEND_URL: ${BACKEND_URL}
depends_on:
- backend
network_mode: bridge

volumes:
postgres_data:
minio_data:
redis_data:`

ENV:

`# App Setup
NODE_ENV=production # Set to 'development' or 'production' as required
JWT_SECRET=* # Replace with a secure JWT secret key
DB_NAME=maxun # Your PostgreSQL database name
DB_USER=postgres # PostgreSQL username
DB_PASSWORD=postgres # PostgreSQL password
DB_HOST=postgres # Host for PostgreSQL in Docker
DB_PORT=5432 # Port for PostgreSQL (default: 5432)
ENCRYPTION_KEY=* # Key for encrypting sensitive data (passwords and proxies)
MINIO_ENDPOINT=minio # MinIO endpoint in Docker
MINIO_PORT=29000 # Port for MinIO (default: 9000)
MINIO_CONSOLE_PORT=29001 # Web UI Port for MinIO (default: 9001)
MINIO_ACCESS_KEY=* # MinIO access key
MINIO_SECRET_KEY=* # MinIO secret key
REDIS_HOST=redis # Redis host in Docker
REDIS_PORT=6379 # Redis port (default: 6379)

Backend and Frontend URLs and Ports

BACKEND_PORT=28080 # Port to run backend on. Needed for Docker setup
FRONTEND_PORT=25173 # Port to run frontend on. Needed for Docker setup
BACKEND_URL=http://192.168.50.80:28080 # URL on which the backend runs. You can change it based on your needs.
PUBLIC_URL=http://192.168.50.80:25173 # URL on which the frontend runs. You can change it based on your needs.
VITE_BACKEND_URL=http://192.168.50.80:28080 # URL used by frontend to connect to backend. It should always have the same value as BACKEND_URL
VITE_PUBLIC_URL=http://192.168.50.80:25173 # URL used by backend to connect to frontend. It should always have the same value as PUBLIC_URL

Optional Google OAuth settings for Google Sheet Integration

GOOGLE_CLIENT_ID=your_google_client_id

GOOGLE_CLIENT_SECRET=your_google_client_secret

GOOGLE_REDIRECT_URI=your_google_redirect_uri

Telemetry Settings - Please keep it enabled. Keeping it enabled helps us understand how the product is used and assess the impact of any new changes.

MAXUN_TELEMETRY=true`

@2904202165
Copy link
Author

组成:

'版本: '3.8'

服务: postgres: image: postgres:13 环境: POSTGRES_USER: ${DB_USER} POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_DB: ${DB_NAME} ports: - “${DB_PORT:-5432}:${DB_PORT:-5432}” 卷: - /share/CACHEDEV4_DATA/maxun/postgres_data:/var/lib/postgresql/data network_mode: bridge healthcheck: test: [“CMD-SHELL”, “pg_isready -U postgres“] 间隔: 10s 超时: 5s 重试次数: 5

redis: image: redis:6 环境: REDIS_HOST: ${REDIS_HOST} REDIS_PORT: ${REDIS_PORT} 端口: - “${REDIS_PORT:-6379}:${REDIS_PORT:-6379}” 卷: - /share/CACHEDEV4_DATA/maxun/redis_data:/data network_mode: bridge

minio: image: minio/minio environment: MINIO_ROOT_USER: ${MINIO_ACCESS_KEY} MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY} command: server /data --console-address :${MINIO_CONSOLE_PORT:-9001} ports: - “${MINIO_PORT:-9000}:${MINIO_PORT:-9000}” # API 端口 - “${MINIO_CONSOLE_PORT:-9001}:${MINIO_CONSOLE_PORT:-9001}” # WebUI 端口 volumes: - /share/CACHEDEV4_DATA/maxun/minio_data:/data network_mode:bridge

backend: # build: # context: . # dockerfile: server/Dockerfile image: getmaxun/maxun-backend:v0.0.9 ports: - “${BACKEND_PORT:-8080}:${BACKEND_PORT:-8080}” env_file: .env environment: BACKEND_URL: ${BACKEND_URL} # 确保 Playwright 在 Docker 中工作 PLAYWRIGHT_BROWSERS_PATH: /ms-playwright PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 0 # DEBUG: pw:api # pwdebug: 1 # 启用调试CHROMIUM_FLAGS: '--disable-gpu --no-sandbox --headless=new' security_opt: - seccomp=unconfined # 这可能有助于解决浏览器沙箱问题 shm_size: '2gb' # 增加 Chromium 的共享内存大小 mem_limit: 2g # 设置 2GB 内存限制 depends_on: - postgres - redis - minio volumes: - /var/run/dbus:/var/run/dbusnetwork_mode: 桥

frontend: # build: # context: . # dockerfile: Dockerfile 镜像: getmaxun/maxun-frontend:v0.0.5 ports: - “${FRONTEND_PORT:-5173}:${FRONTEND_PORT:-5173}” env_file: .env 环境: PUBLIC_URL: ${PUBLIC_URL} BACKEND_URL: ${BACKEND_URL} depends_on: - 后端 network_mode: Bridge

卷数: postgres_data: minio_data: redis_data:'

环境:

'# 应用设置 NODE_ENV=production # 根据需要设置为 'development' 或 'production' JWT_SECRET=* # 替换为安全的 JWT 密钥 DB_NAME=maxun # 你的 PostgreSQL 数据库名称 DB_USER=postgres # PostgreSQL 用户名 DB_PASSWORD=postgres # PostgreSQL 密码 DB_HOST=postgres # Docker 中的 PostgreSQL 主机 DB_PORT=5432 # PostgreSQL 的端口(默认值:5432)ENCRYPTION_KEY=* # 加密敏感数据(密码和代理)的密钥 MINIO_ENDPOINT=minio # Docker 中的 MinIO 端点 MINIO_PORT=29000 # MinIO 端口(默认:9000) MINIO_CONSOLE_PORT=29001 # MinIO 的 Web UI 端口(默认:9001) MINIO_ACCESS_KEY=* # MinIO 访问密钥 MINIO_SECRET_KEY=* # MinIO 密钥 REDIS_HOST=redis # Docker 中的 Redis 主机 REDIS_PORT=6379 # Redis 端口(默认: 6379)

后端和前端 URL 和端口

BACKEND_PORT=28080 # 运行后端的端口。Docker 设置需要 FRONTEND_PORT=25173 # 运行前端的端口。Docker 设置需要 BACKEND_URL=http://192.168.50.80:28080 # 运行后端的 URL。您可以根据需要更改它。 PUBLIC_URL=http://192.168.50.80:25173 # 运行前端的 URL。您可以根据需要更改它。 VITE_BACKEND_URL=http://192.168.50.80:28080 # 前端用于连接后端的 URL。它的值应始终与后端用于连接到前端的 BACKEND_URL VITE_PUBLIC_URL=http://192.168.50.80:25173 # URL 相同。它应始终具有与 PUBLIC_URL 相同的值

用于 Google Sheet 集成的可选 Google OAuth 设置

GOOGLE_CLIENT_ID=your_google_client_id

GOOGLE_CLIENT_SECRET=your_google_client_secret

GOOGLE_REDIRECT_URI=your_google_redirect_uri

遥测设置 - 请保持启用状态。保持启用状态有助于我们了解产品的使用情况,并评估任何新更改的影响。

MAXUN_TELEMETRY=真”
我刚刚试了,换成了公网地址,现在注册显示失败:
image
image

@WiKiBIRD
Copy link

WiKiBIRD commented Jan 3, 2025

组成:

'版本: '3.8'

服务: postgres: image: postgres:13 环境: POSTGRES_USER: ${DB_USER} POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_DB: ${DB_NAME} ports: - “${DB_PORT:-5432}:${DB_PORT:-5432}” 卷: - /share/CACHEDEV4_DATA/maxun/postgres_data:/var/lib/postgresql/data network_mode: bridge healthcheck: test: [“CMD-SHELL”, “pg_isready -U postgres“] 间隔: 10s 超时: 5s 重试次数: 5

redis: image: redis:6 环境: REDIS_HOST: ${REDIS_HOST} REDIS_PORT: ${REDIS_PORT} 端口: - “${REDIS_PORT:-6379}:${REDIS_PORT:-6379}” 卷: - /share/CACHEDEV4_DATA/maxun/redis_data:/data network_mode: bridge

minio: image: minio/minio environment: MINIO_ROOT_USER: ${MINIO_ACCESS_KEY} MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY} command: server /data --console-address :${MINIO_CONSOLE_PORT:-9001} ports: - “${MINIO_PORT:-9000}:${MINIO_PORT:-9000}” # API 端口 - “${MINIO_CONSOLE_PORT:-9001}:${MINIO_CONSOLE_PORT:-9001}” # WebUI 端口 volumes: - /share/CACHEDEV4_DATA/maxun/minio_data:/data network_mode:bridge

backend: # build: # context: . # dockerfile: server/Dockerfile image: getmaxun/maxun-backend:v0.0.9 ports: - “${BACKEND_PORT:-8080}:${BACKEND_PORT:-8080}” env_file: .env environment: BACKEND_URL: ${BACKEND_URL} # 确保 Playwright 在 Docker 中工作 PLAYWRIGHT_BROWSERS_PATH: /ms-playwright PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 0 # DEBUG: pw:api # pwdebug: 1 # 启用调试CHROMIUM_FLAGS: '--disable-gpu --no-sandbox --headless=new' security_opt: - seccomp=unconfined # 这可能有助于解决浏览器沙箱问题 shm_size: '2gb' # 增加 Chromium 的共享内存大小 mem_limit: 2g # 设置 2GB 内存限制 depends_on: - postgres - redis - minio volumes: - /var/run/dbus:/var/run/dbusnetwork_mode: 桥

frontend: # build: # context: . # dockerfile: Dockerfile 镜像: getmaxun/maxun-frontend:v0.0.5 ports: - “${FRONTEND_PORT:-5173}:${FRONTEND_PORT:-5173}” env_file: .env 环境: PUBLIC_URL: ${PUBLIC_URL} BACKEND_URL: ${BACKEND_URL} depends_on: - 后端 network_mode: Bridge

卷数: postgres_data: minio_data: redis_data:'

环境:

'# 应用设置 NODE_ENV=production # 根据需要设置为 'development' 或 'production' JWT_SECRET=* # 替换为安全的 JWT 密钥 DB_NAME=maxun # 你的 PostgreSQL 数据库名称 DB_USER=postgres # PostgreSQL 用户名 DB_PASSWORD=postgres # PostgreSQL 密码 DB_HOST=postgres # Docker 中的 PostgreSQL 主机 DB_PORT=5432 # PostgreSQL 的端口(默认值:5432)ENCRYPTION_KEY=* # 加密敏感数据(密码和代理)的密钥 MINIO_ENDPOINT=minio # Docker 中的 MinIO 端点 MINIO_PORT=29000 # MinIO 端口(默认:9000) MINIO_CONSOLE_PORT=29001 # MinIO 的 Web UI 端口(默认:9001) MINIO_ACCESS_KEY=* # MinIO 访问密钥 MINIO_SECRET_KEY=* # MinIO 密钥 REDIS_HOST=redis # Docker 中的 Redis 主机 REDIS_PORT=6379 # Redis 端口(默认: 6379)

后端和前端 URL 和端口

BACKEND_PORT=28080 # 运行后端的端口。Docker 设置需要 FRONTEND_PORT=25173 # 运行前端的端口。Docker 设置需要 BACKEND_URL=http://192.168.50.80:28080 # 运行后端的 URL。您可以根据需要更改它。 PUBLIC_URL=http://192.168.50.80:25173 # 运行前端的 URL。您可以根据需要更改它。 VITE_BACKEND_URL=http://192.168.50.80:28080 # 前端用于连接后端的 URL。它的值应始终与后端用于连接到前端的 BACKEND_URL VITE_PUBLIC_URL=http://192.168.50.80:25173 # URL 相同。它应始终具有与 PUBLIC_URL 相同的值

用于 Google Sheet 集成的可选 Google OAuth 设置

GOOGLE_CLIENT_ID=your_google_client_id

GOOGLE_CLIENT_SECRET=your_google_client_secret

GOOGLE_REDIRECT_URI=your_google_redirect_uri

遥测设置 - 请保持启用状态。保持启用状态有助于我们了解产品的使用情况,并评估任何新更改的影响。

MAXUN_TELEMETRY=真”
我刚刚试了,换成了公网地址,现在注册显示失败:
image
image

不要用公網地址,用路由器分配給你的地址🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs more info Requires more context Type: Duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants