Skip to content

Commit

Permalink
fix(issue-229): fix the bug of docker-compose
Browse files Browse the repository at this point in the history
Merge pull request #230 from live-dev999/live-dev999/issue229
  • Loading branch information
live-dev999 committed Mar 23, 2022
2 parents f78fca4 + ee6a634 commit 70b744a
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using System;
using System.Reflection;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace O2NextGen.Auth.Web.Controllers
{

[AllowAnonymous]
public class VersionController : ControllerBase
{
#region Fields

private readonly IHostingEnvironment _environment;
private readonly ILogger<VersionController> _logger;

#endregion


#region Ctors

public VersionController(IHostingEnvironment environment, ILogger<VersionController> logger)
{
_environment = environment;
_logger = logger;
}

#endregion

[HttpGet("[controller]")]
public object Index()
{
var exVersion = Assembly.GetExecutingAssembly().GetName().Version;
_logger.LogInformation($"get version - {exVersion}");
return new
{
Environment = _environment.EnvironmentName,
Version = exVersion.ToString()
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"applicationUrl": "https://localhost:10001;http://localhost:5001"
},
"Docker": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
"publishAllPorts": true,
"useSSL": true
}
//"Docker": {
// "commandName": "Docker",
// "launchBrowser": true,
// "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
// "publishAllPorts": true,
// "useSSL": true
//}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"applicationUrl": "https://localhost:10002;http://localhost:5002"
},
"Docker": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
"publishAllPorts": true,
"useSSL": true
}
//"Docker": {
// "commandName": "Docker",
// "launchBrowser": true,
// "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
// "publishAllPorts": true,
// "useSSL": true
//}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
},
"applicationUrl": "https://localhost:10004;http://localhost:5004"
},
"Docker": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/api/values",
"publishAllPorts": true,
"useSSL": true
}
//"Docker": {
// "commandName": "Docker",
// "launchBrowser": true,
// "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/api/values",
// "publishAllPorts": true,
// "useSSL": true
//}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
},
"applicationUrl": "https://localhost:10003;http://localhost:5003"
},
"Docker": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/api/values",
"publishAllPorts": true,
"useSSL": true
}
//"Docker": {
// "commandName": "Docker",
// "launchBrowser": true,
// "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/api/values",
// "publishAllPorts": true,
// "useSSL": true
//}
}
}

0 comments on commit 70b744a

Please sign in to comment.