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

发现了一个不用配置ios 自签证书也能安装ipa的方法 #163

Open
zhangygit opened this issue Feb 17, 2023 · 1 comment
Open

Comments

@zhangygit
Copy link

  1. 首先nignx的ssl还是需要配置的
  2. 在nginx里配置
server {
    listen 443 ssl;
    server_name  XXXXXXX;
    
    ssl_certificate    XXXX/server.crt; 
    ssl_certificate_key XXXXX/ca.key;
   
   #此处是重点
    location ~* \.(plist)$ {
        proxy_set_header  Host $http_host;
        proxy_set_header  X-Real-IP $remote_addr;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header  X-Forwarded-Proto http;
        proxy_set_header  X-Forwarded-Port 3000;
        proxy_pass http://127.0.0.1:3000; #此处改为 docker 服务的地址
      }    


 
    location / {
        proxy_set_header  Host $http_host;
        proxy_set_header  X-Real-IP $remote_addr;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header  X-Forwarded-Proto https;
        proxy_set_header  X-Forwarded-Port $server_port;
        proxy_pass http://127.0.0.1:3000; #此处改为 docker 服务的地址
    }
}

这样 plist 里的请求地址都走的是http, ios里无需自签名 信任也能安装ipa了

@Guojx123
Copy link

Guojx123 commented Nov 8, 2023

  1. 首先nignx的ssl还是需要配置的
  2. 在nginx里配置
server {
    listen 443 ssl;
    server_name  XXXXXXX;
    
    ssl_certificate    XXXX/server.crt; 
    ssl_certificate_key XXXXX/ca.key;
   
   #此处是重点
    location ~* \.(plist)$ {
        proxy_set_header  Host $http_host;
        proxy_set_header  X-Real-IP $remote_addr;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header  X-Forwarded-Proto http;
        proxy_set_header  X-Forwarded-Port 3000;
        proxy_pass http://127.0.0.1:3000; #此处改为 docker 服务的地址
      }    


 
    location / {
        proxy_set_header  Host $http_host;
        proxy_set_header  X-Real-IP $remote_addr;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header  X-Forwarded-Proto https;
        proxy_set_header  X-Forwarded-Port $server_port;
        proxy_pass http://127.0.0.1:3000; #此处改为 docker 服务的地址
    }
}

这样 plist 里的请求地址都走的是http, ios里无需自签名 信任也能安装ipa了

你好,请问可以再说的具体一点么,我按照你的nginx配置,iOS还是安装不了

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