first running version
This commit is contained in:
@@ -8,7 +8,7 @@ namespace tv7playlist.Controllers
|
||||
{
|
||||
[Route("api/playlist")]
|
||||
[ApiController]
|
||||
public class PlayListTV7Controller : ControllerBase
|
||||
public class PlayListController : ControllerBase
|
||||
{
|
||||
private const string Tv7OriginUrl = "https://api.init7.net/tvchannels.m3u";
|
||||
private const string UdpxyRootUrl = "http://tv1.haefelfinger.net:4022/udp";
|
@@ -16,4 +16,7 @@ WORKDIR /app
|
||||
|
||||
COPY --from=build-env /app/out .
|
||||
|
||||
ENV ASPNETCORE_URLS=http://+:80
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["dotnet", "tv7playlist.dll"]
|
||||
|
@@ -21,7 +21,7 @@
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "api/values",
|
||||
"applicationUrl": "https://localhost:5001;http://localhost:5000",
|
||||
"applicationUrl": "http://localhost:5000",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
|
@@ -25,7 +25,9 @@ namespace tv7playlist
|
||||
// This method gets called by the runtime. Use this method to add services to the container.
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
|
||||
services
|
||||
.AddMvc()
|
||||
.SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
@@ -39,8 +41,6 @@ namespace tv7playlist
|
||||
{
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
app.UseMvc();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user