Last active
September 19, 2024 09:07
-
-
Save wangjiezhe/24d5084ff02e1bf8d9b5374f9e0140c0 to your computer and use it in GitHub Desktop.
搭建 DNS 服务器,在车机上安装软件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dns: | |
rewrites: | |
- domain: dzsms.gwm.com.cn | |
answer: **.**.**.** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dns.domain.ltd { | |
# cert setting missing | |
handle { | |
# reverse_proxy :3003 { | |
reverse_proxy :8800 { | |
header_up X-Real-IP {http.request.remote} | |
} | |
} | |
} | |
dzsms.gwm.com.cn { | |
tls internal | |
handle /apiv2/car_apk_update { | |
header Content-Type application/json | |
respond 200 { | |
body ` { | |
"code": 200, | |
"message": "查询成功", | |
"data": { | |
"apk_version": "99999", | |
"apk_url": "https://download.domain.ltd/test.apk", | |
"apk_msg": "恭喜成功", | |
"isUpdate": "Yes", | |
"apk_forceUpdate": "Yes", | |
"notice": { | |
"vin_notice": [ | |
"VIN码可以在仪表板左上方(前风挡玻璃后面)和车辆铭牌上获得。", | |
"本应用适用于2019年及之后生产的车型。" | |
], | |
"add_notice": [ | |
"制造年月可通过车辆铭牌获得。", | |
"本应用适用于2019年及之后生产的车型。" | |
] | |
} , | |
"notice_en": { | |
"vin_notice": [], | |
"add_notice": [ | |
"The date can be obtained from the certification label." | |
] | |
} | |
} | |
} ` | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment