diff --git a/Controllers/ValuesController.cs b/Controllers/PlayListController.cs similarity index 93% rename from Controllers/ValuesController.cs rename to Controllers/PlayListController.cs index 88fcb3d..77699f5 100644 --- a/Controllers/ValuesController.cs +++ b/Controllers/PlayListController.cs @@ -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"; diff --git a/Dockerfile b/Dockerfile index 5e778c3..09e905e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,7 @@ WORKDIR /app COPY --from=build-env /app/out . +ENV ASPNETCORE_URLS=http://+:80 +EXPOSE 80 + ENTRYPOINT ["dotnet", "tv7playlist.dll"] diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json index 78a6815..5d4f430 100644 --- a/Properties/launchSettings.json +++ b/Properties/launchSettings.json @@ -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" } diff --git a/Startup.cs b/Startup.cs index 8044b8d..a3b1f20 100644 --- a/Startup.cs +++ b/Startup.cs @@ -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(); } }