แก้ให้รับกับ environment
This commit is contained in:
@@ -97,10 +97,10 @@ namespace TodoAPI2.Controllers
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized();
|
||||
//var httpclient = MyHelper.getHttpClient(Configuration);
|
||||
var httpclient = new WebClient();
|
||||
string mainurl = Configuration["JasperReportServer:MainURL"];
|
||||
string reportsite = Configuration["JasperReportServer:reportsite"];
|
||||
string username = Configuration["JasperReportServer:username"];
|
||||
string password = Configuration["JasperReportServer:password"];
|
||||
string mainurl = Environment.GetEnvironmentVariable("JasperReportServer_MainURL");
|
||||
string reportsite = Environment.GetEnvironmentVariable("JasperReportServer_LoginURL");
|
||||
string username = Environment.GetEnvironmentVariable("JasperReportServer_username");
|
||||
string password = Environment.GetEnvironmentVariable("JasperReportServer_password");
|
||||
|
||||
string url = $"{mainurl}{reportsite}/rep_eva01.{model.filetype}?{MyHelper.GetParameterForJasperReport(model)}&j_username={username}&j_password={password}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user