1
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
container_name: nas_robot_proxy
|
container_name: nas_robot_proxy
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 35642:80 # 开放端口
|
- 14902:80 # 开放端口
|
||||||
environment:
|
environment:
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
- HTPASSWD=suncheng:$$apr1$$2QX32QHP$$HIGAbCuTt8jxdc4uDzNLI1
|
- HTPASSWD=suncheng:$$apr1$$2QX32QHP$$HIGAbCuTt8jxdc4uDzNLI1
|
||||||
|
|||||||
@@ -19,12 +19,15 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry
|
|||||||
_configuration = configuration;
|
_configuration = configuration;
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
|
|
||||||
|
var httpClientHandler = new HttpClientHandler();
|
||||||
|
|
||||||
var proxyAddress = _configuration["ChineseNfo:HttpProxy"];
|
var proxyAddress = _configuration["ChineseNfo:HttpProxy"];
|
||||||
var httpClientHandler = new HttpClientHandler
|
|
||||||
|
if(string.IsNullOrEmpty(proxyAddress) == false)
|
||||||
{
|
{
|
||||||
Proxy = string.IsNullOrEmpty(proxyAddress) ? null : new WebProxy(proxyAddress, false),
|
httpClientHandler.Proxy = string.IsNullOrEmpty(proxyAddress) ? null : new WebProxy(proxyAddress, false);
|
||||||
UseProxy = !string.IsNullOrEmpty(proxyAddress)
|
httpClientHandler.UseProxy = !string.IsNullOrEmpty(proxyAddress);
|
||||||
};
|
}
|
||||||
|
|
||||||
_client = new HttpClient(httpClientHandler);
|
_client = new HttpClient(httpClientHandler);
|
||||||
_client.BaseAddress = new Uri("https://api.themoviedb.org");
|
_client.BaseAddress = new Uri("https://api.themoviedb.org");
|
||||||
|
|||||||
@@ -51,15 +51,15 @@
|
|||||||
"HealthyTasks": [
|
"HealthyTasks": [
|
||||||
{
|
{
|
||||||
"ContainerName": "netdata_proxy",
|
"ContainerName": "netdata_proxy",
|
||||||
"Url": "http://192.168.31.14:19999"
|
"Url": "http://192.168.31.14:14402"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ContainerName": "nas_robot_proxy",
|
"ContainerName": "nas_robot_proxy",
|
||||||
"Url": "http://192.168.31.14:35642/swagger/index.html"
|
"Url": "http://192.168.31.14:14902/swagger/index.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ChineseNfo": {
|
"ChineseNfo": {
|
||||||
"TvFolder": "/data/tv",
|
"TvFolder": "/data/tv",
|
||||||
"HttpProxy": "http://192.168.31.14:47890"
|
"HttpProxy": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user