|
发表于 2020-4-22 21:54:39
|
显示全部楼层
本帖最后由 不会魔法的思思 于 2020-4-23 00:32 编辑
楼主第8步中
- cp mb3admin.com.cert.pem /etc/ssl/certs/ca-certificates.crt
复制代码
这一命令会造成群晖所有根证书丢失,建议在修改前备份ca-certificates.crt文件,或使用
- cat mb3admin.com.cert.pem >> /etc/ssl/certs/ca-certificates.crt
复制代码
设置nginx代理部分可以更改,我按照楼主的教程设置之后发现无法正常访问,后来通过阅读配置文件发现,在Web Station添加新域名之后使用命令- cat /etc/nginx/app.d/server.webstation-vhost.conf
复制代码 查看最后一行,例如我自己的就是- include /usr/local/etc/nginx/conf.d/英数混合/user.conf*;
复制代码 然后运行- cd /usr/local/etc/nginx/conf.d/英数混合
复制代码 请勿照抄,按照自己的目录修改然后运行
插入如下代码保存
- add_header Access-Control-Allow-Origin *;
- add_header Access-Control-Allow-Headers *;
- add_header Access-Control-Allow-Method *;
- add_header Access-Control-Allow-Credentials true;
- location /admin/service/registration/validateDevice {
- default_type application/json;
- return 200 '{"cacheExpirationDays": 7,"message": "Device Valid","resultCode": "GOOD"}';
- }
- location /admin/service/registration/validate {
- default_type application/json;
- return 200 '{"featId":"","registered":true,"expDate":"2099-01-01","key":""}';
- }
- location /admin/service/registration/getStatus {
- default_type application/json;
- return 200 '{"deviceStatus":"","planType":"","subscriptions":{}}';
- }
复制代码
然后运行
|
|