chore: 初始开源发布

iotlcm-onelink-mock:OneLink 挡板服务(本地测试替身)。

- Go module 迁移至 git.5iot.com/iotlcm-public/iotlcm-onelink-mock
- 修复同毫秒内多次生成卡导致 ICCID/IMSI 唯一约束冲突
- 补 Apache-2.0 LICENSE,README 重写并新增 docs/deploy.md
- 移除内部部署资产(CI 触发器 / 镜像推送脚本 / 指定环境部署文档)
- 测试凭据改为 demo_appid / demo_password,真实手机号与内网 IP 脱敏
- 统一 LF 行尾并加 .gitattributes
This commit is contained in:
MiFaZhan
2026-10-22 15:08:27 +08:00
commit 4e2cd43a55
61 changed files with 10417 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location = /onelink-mock {
return 301 /onelink-mock/;
}
location /onelink-mock/assets/ {
alias /usr/share/nginx/html/assets/;
}
location /onelink-mock/api/ {
rewrite ^/onelink-mock/(.*)$ /$1 break;
proxy_pass http://backend:8080;
}
location /onelink-mock/v5/ {
rewrite ^/onelink-mock/(.*)$ /$1 break;
proxy_pass http://backend:8080;
}
location /onelink-mock/ec/ {
rewrite ^/onelink-mock/(.*)$ /$1 break;
proxy_pass http://backend:8080;
}
location /onelink-mock/healthz {
rewrite ^/onelink-mock/(.*)$ /$1 break;
proxy_pass http://backend:8080;
}
location /onelink-mock/ {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://backend:8080;
}
location /v5/ {
proxy_pass http://backend:8080;
}
location /ec/ {
proxy_pass http://backend:8080;
}
location /healthz {
proxy_pass http://backend:8080;
}
location / {
try_files $uri $uri/ /index.html;
}
}