Skip to content

Commit

Permalink
Use HTTPS redirection in development environment only (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
flenny authored Jul 5, 2022
1 parent e3aae7e commit 35b604f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@

// Only seed if database is empty
if (!context.Standorte.Any()) context.SeedData();

// Use HTTPS redirection in development environment only due to unwanted redirects
// with jwilder/nginx-proxy reverse proxy in production mode.
app.UseHttpsRedirection();
}

app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();

Expand Down

0 comments on commit 35b604f

Please sign in to comment.