diff --git a/Withings.Example/Program.cs b/Withings.Example/Program.cs index c3e554b..71048dd 100644 --- a/Withings.Example/Program.cs +++ b/Withings.Example/Program.cs @@ -37,6 +37,7 @@ var app = builder.Build(); +app.UseHttpsRedirection(); app.UseSession(); app.MapGet("/", () => Results.Redirect("/api/oauth/authorize", permanent: true)); @@ -201,4 +202,4 @@ return Results.Json(activity); }); -app.Run("http://0.0.0.0:8080"); +app.Run(); diff --git a/Withings.Example/appsettings.json b/Withings.Example/appsettings.json new file mode 100644 index 0000000..69ba5a3 --- /dev/null +++ b/Withings.Example/appsettings.json @@ -0,0 +1,12 @@ +{ + "Kestrel": { + "Endpoints": { + "Http": { + "Url": "http://127.0.0.1:8080" + }, + "Https": { + "Url": "https://127.0.0.1:8081" + } + } + } +}