Remove https

This commit is contained in:
Joseph Ferano 2022-07-21 14:46:54 +07:00
parent fc04e5f2b5
commit b86adff83d
2 changed files with 3 additions and 3 deletions

View File

@ -105,8 +105,7 @@ let main args =
fun webHostBuilder -> fun webHostBuilder ->
webHostBuilder webHostBuilder
.ConfigureKestrel(fun opt -> .ConfigureKestrel(fun opt ->
opt.AddServerHeader <- false opt.AddServerHeader <- false)
opt.ListenLocalhost(3333, (fun o -> o.UseHttps() |> ignore)))
.Configure(Action<IApplicationBuilder> configureApp) .Configure(Action<IApplicationBuilder> configureApp)
.ConfigureServices(configureServices) .ConfigureServices(configureServices)
.ConfigureLogging(configureLogging) .ConfigureLogging(configureLogging)

View File

@ -21,5 +21,6 @@ FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app WORKDIR /app
COPY --from=publish /app/publish . COPY --from=publish /app/publish .
EXPOSE 3333 EXPOSE 3333
RUN dotnet dev-certs https EXPOSE 80
EXPOSE 443
ENTRYPOINT [ "dotnet", "./CurrencyAPI.App.dll" ] ENTRYPOINT [ "dotnet", "./CurrencyAPI.App.dll" ]