Commit 059669a
Secure web server binding and enforce HTTPS
- Remove hardcoded insecure HTTP binding to 0.0.0.0:8080 in Program.cs.
- Add app.UseHttpsRedirection() middleware to enforce secure traffic.
- Introduce appsettings.json with secure default Kestrel configuration (localhost only).
Co-authored-by: antarr <974295+antarr@users.noreply.github.com>1 parent 6609f54 commit 059669a
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | | - | |
| 205 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments