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

通过域名上传ipa报错 #73

Open
pxvp2008 opened this issue Feb 9, 2025 · 3 comments
Open

通过域名上传ipa报错 #73

pxvp2008 opened this issue Feb 9, 2025 · 3 comments

Comments

@pxvp2008
Copy link

pxvp2008 commented Feb 9, 2025

环境:
使用docker-compose部署,只部署ineva/ipa-server:v2.5.3镜像,将8080端口映射出来

docker-compose.yaml文件如下:

version: "3.7"

services:
  web:
    image: ineva/ipa-server:v2.5.3
    container_name: ipa-server
    restart: unless-stopped
    environment:
      # server public url
      - PUBLIC_URL=https://aa.123za.com:9981
      # option, remote storager config, s3://ENDPOINT:AK:SK:BUCKET, alioss://ENDPOINT:AK:SK:BUCKET, qiniu://[ZONE]:AK:SK:BUCKET
      - REMOTE=
      # option, remote storager public url, https://cdn.example.com
      - REMOTE_URL=
      # option, metadata storage path, use random secret path to keep your metadata safer in case of remote storage
      - META_PATH=appList.json
      # delete app enabled, true/false
      - DELETE_ENABLED=true
      # meta data 过滤显示, string list, 使用逗号分隔
      - META_DATA_FILTER="key1,key2"
      # 如果设置了,使用此用户名密码来上传和删除App
      - LOGIN_USER=
      - LOGIN_PASS=
    volumes:
      - "./ipa-server/upload:/app/upload"
    ports:
      - "5432:8080"

再使用nginx进行代理,nginx的9981代理到ipa-server的5432,nginx中配置了ssl证书。

通过https://aa.123za.com:9981访问的时候,上传ipa包时报如下错误:

ts="2025-02-09 23:26:08.459" caller=ipasd.go:145 msg="err: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header"

直接通过http://IP:5432 访问时,可以正常上传ipa包。

请教大佬,如何解决该问题?

@iineva
Copy link
Owner

iineva commented Feb 9, 2025

nginx反向代理WebSocke 参考这个配置websocket反代

@iineva
Copy link
Owner

iineva commented Feb 9, 2025

另外建议使用https标准端口443

@pxvp2008
Copy link
Author

多谢大佬,我去试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants