女票萌哦

Emby基于宝塔白嫖记录

2020-07-21 · 4 min read
键仙

警告!!本文仅供学习研究使用。
当你想了解白嫖Emby时,想必已经通过度娘谷哥查询到不少资料,遗憾的是大部分信息被隐(shou)藏(fei),或者是基于群晖内网使用的教程。
如果想在服务器上搭建一个白嫖服务,那应该怎么做呢?
思路和原理是一样的,这里只记录一下在宝塔搭建流程和一些坑。

流程:
1.服务器安装好删库塔,部署nginx+php环境(以下使用的是nginx1.17+php7.4)
2.添加网站,域名填写*.mb3admin.com

3.添加ssl,证书不能用let's encrypt生成,只能自签发,推荐使用https://www.gmcert.org/(备注:Chrome和苹果要求有效证书最长不能超过一年)
4.添加伪静态
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":{}}';
}
5.修改nginx配置
a.添加跨域访问
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;
b.修改ssl配置为
ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
6.在Emby服务器上修改hosts&添加自签名证书。

目前遇到的问题:
1.在centos搭建的emby无法正常使用,提示(ps:win正常,俺也没有本地测试过2333)

附带一份已经做好的证书。

KEY:
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAy+oBWasEbhQVjcqClISYNceV3nUOkGfbBemGsNPKPBoLGvW8
+nM+8HawBmcugwawY6YGpF6HriEqJFwUym+KrwwN5IV8ybGqkyOPLYEj+XjZJb1t
9xXNgom+HYe9CMkun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N5AmCfdofWr4m074s+Rf/i+h
dBuh2vjZee9L/NV2ZRcxpwp9e561+JBXoHvZ0JHDBGQ0WYsJ+m9fRxCR12oIVWWv
SAjbyetRRO+oTvi3dX2OQUgJhflS4/cxQblYxgL5nMIa+MVamXUNNfwEk3TZh4K/
NgtQY5KraEUU7bCkbbKdX2r+njobTQpbBV8uZ/JwsNghx4gfB+3QrteVfceQ+ip+
CpEU9X3JD9WkxEVFKBa0Q+TllSny07of0cWmRuwZlLUruBJD
-----END CERTIFICATE-----

好的结束,仅供学习研究使用。

自豪地没有采用 WordPress 与 Typecho 载入天数...载入时分秒...