一键搭建ipa在线签名服务器,不需要复杂的技术,依赖docker环境即可。
包含ipa上传签名,在线人数统计,存储统计等功能
1、先安装docker环境
# centos
yum install docker
# ubuntu
apt install docker
2、运行签名服务
#docker run -d --restart=always -p 3000:3000 -e domain=https://你的域名 -e qps=限流多少秒 -e expire=文件多少秒自动删除 --name sign dounine/sign:latest
docker run -d --restart=always -p 3000:3000 -e domain=https://domain.com -e qps=60 -e expire=10800 --name sign dounine/sign:latest
3、配置域名转发
server {
listen 443 ssl;
server_name 你的域名;
ssl_certificate /etc/nginx/conf.d/ssl/你的域名.pem;
ssl_certificate_key /etc/nginx/conf.d/ssl/你的域名.key;
location / {
proxy_read_timeout 1000;
proxy_pass http://localhost:3000;
add_header 'Access-Control-Allow-Methods' 'GET,POST,PUT,DELETE,PATCH,OPTIONS';
add_header 'Access-Control-Allow-Headers' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
server {
listen 80;
server_name 你的域名;
rewrite ^(.*)$ https://$host$1 permanent;
}