(options =>
+ {
+ options.ForwardedHeaders =
+ ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
+ });
+*/
services.AddMvc();
services.AddDataProtection();
@@ -85,14 +92,11 @@ namespace isnd
services.AddAuthentication("Bearer")
.AddJwtBearer("Bearer", options =>
{
- options.Authority = "https://localhost:5001";
-
options.TokenValidationParameters = new TokenValidationParameters
{
ValidateAudience = false
};
});
-
}
@@ -105,6 +109,9 @@ namespace isnd
Microsoft.AspNetCore.Hosting.IHostingEnvironment env,
ApplicationDbContext dbContext)
{
+ // app.UseForwardedHeaders();
+ // .UseHttpsRedirection();
+
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
@@ -113,12 +120,12 @@ namespace isnd
else
{
app.UseExceptionHandler("/Home/Error");
- app.UseHsts();
dbContext.Database.Migrate();
}
-
- app.UseHttpsRedirection();
- app.UseStatusCodePages().UseStaticFiles().UseAuthentication().UseMvc(routes =>
+ app
+ .UseStaticFiles()
+ .UseAuthentication()
+ .UseMvc(routes =>
{
routes.MapRoute(
name: "default",
diff --git a/src/isnd/Views/PackageVersion/Delete.cshtml b/src/isnd/Views/Packages/Delete.cshtml
similarity index 100%
rename from src/isnd/Views/PackageVersion/Delete.cshtml
rename to src/isnd/Views/Packages/Delete.cshtml
diff --git a/src/isnd/Views/Packages/Details.cshtml b/src/isnd/Views/Packages/Details.cshtml
index 0341901..bbf7931 100644
--- a/src/isnd/Views/Packages/Details.cshtml
+++ b/src/isnd/Views/Packages/Details.cshtml
@@ -38,7 +38,8 @@
<PackageReference Include="@Model.pkgid" Version="@Model.latest.FullString" />
- @Html.ActionLink("Edit", "Edit", new { pkgid = Model.pkgid, version = Model.latest.FullString }) |
+ @Html.ActionLink("Edit", "Edit", new { pkgid = Model.pkgid, version = Model.latest.FullString }) |
+ @Html.ActionLink("Delete", "Delete", new { pkgid = Model.pkgid, version= Model.latest.FullString }) |
Back to List
diff --git a/src/isnd/Views/Packages/Index.cshtml b/src/isnd/Views/Packages/Index.cshtml
index 8b7d0ee..1b63981 100644
--- a/src/isnd/Views/Packages/Index.cshtml
+++ b/src/isnd/Views/Packages/Index.cshtml
@@ -44,8 +44,7 @@
@Html.DisplayFor(modelItem => item.Description)
- @Html.ActionLink("Details", "Details", new { pkgid = item.Id }) |
- @Html.ActionLink("Delete", "Delete", new { pkgid = item.Id })
+ @Html.ActionLink("Details", "Details", new { pkgid = item.Id })
|
}
diff --git a/src/isnd/wwwroot/css/site.css b/src/isnd/wwwroot/css/site.css
index 8c14d74..85e5ce6 100644
--- a/src/isnd/wwwroot/css/site.css
+++ b/src/isnd/wwwroot/css/site.css
@@ -7843,7 +7843,8 @@ a.text-dark:hover, a.text-dark:focus {
border: 1px solid #333;
box-shadow: 8px 8px 5px #444;
padding: 8px 12px;
- background-image: linear-gradient(180deg, #fff, #ddd 40%, #ccc); }
+ background-image: linear-gradient(180deg, #fff, #ddd 40%, #ccc);
+ margin: 1em; }
.fa-copy {
cursor: copy; }
diff --git a/src/isnd/wwwroot/css/site.scss b/src/isnd/wwwroot/css/site.scss
index 5fce340..7da0fd0 100644
--- a/src/isnd/wwwroot/css/site.scss
+++ b/src/isnd/wwwroot/css/site.scss
@@ -105,8 +105,9 @@ background-color: black;
box-shadow: 8px 8px 5px #444;
padding: 8px 12px;
background-image: linear-gradient(180deg, #fff, #ddd 40%, #ccc);
+ margin: 1em;
}
.fa-copy {
cursor: copy;
-}
\ No newline at end of file
+}