当前位置:网站首页>App management platform app host

App management platform app host

2022-06-24 07:07:00 Common_ youmen

Introduce

A lightweight package hosting site ,app-host It is mainly used for iOS and Android Package management , Function like fir.im, The difference is that it can be freely deployed in the intranet , It facilitates the project confidentiality of the company . And open source code can also facilitate customized development according to their respective needs .

At present, we can achieve

1. New package 2. New channels under the package ( iOS, Android , Various environments are classified as channels , for example iOS production ,iOS Sandbox ,iOS Prison break version ,Android Production etc. ) 3. Upload packages under the channel 4. Account and authority management 5.api And page form upload package 6. Parsing package information , Include iOS The package type of ADHOC still release,udid, Android signature certificate, etc

Docker

1. > git clone https://github.com/pluosi/app-host.git /opt/app-host
2. > cd /opt/app-host
5. > ./docker/launcher bootstrap -v # This step is network dependent , So if the network is unstable, an error is reported , You can try again a few times 
6. > ./docker/launcher start
7.  Try to visit  http://localhost:3000 , If you don't want to use 3000 port , It can be modified manually  docker/launcher  Inside `local_port` value 
ps: The database and uploaded files will be saved in  ./shared  In the folder 

To configure nginx

 server{
        listen 80; 
        server_name appledown.xxxxxx.com;
        rewrite ^(.*) https://$server_name$1 permanent;
    }  


    server {
        listen       443;
        server_name  appledown.xxxxxx.com;
        ssl on; 
        ssl_certificate   cert/appledown.xxxxxx.com.pem;
        ssl_certificate_key  cert/appledown.xxxxxx.com.key;
        ssl_session_timeout 5m; 
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4:!DH:!DHE;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on; 

        client_max_body_size 500m;
        client_body_buffer_size 128k;
        proxy_connect_timeout 75;
        proxy_send_timeout 75;
        proxy_read_timeout 75;
        proxy_buffer_size 4k;
        proxy_buffers 4 32k;

        add_header 'Access-Control-Allow-Origin' '*';
        add_header 'Access-Control-Allow-Credentials' 'true';
        add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
        add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';


        location / {
            proxy_redirect    off;
            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 $scheme;
            proxy_set_header  X-Forwarded-Ssl on; # Optional
            proxy_set_header  X-Forwarded-Port $server_port;

            if (!-f $request_filename) {
                proxy_pass http://192.168.0.158:13000;
            }
        }

    }

Use

Create user

Enter email and password , You can create an administrator .

原网站

版权声明
本文为[Common_ youmen]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/07/20210707145920295Y.html