Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions nginx.example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ server {

root /usr/share/nginx/html;

# Relative Location on every redirect nginx sends (directory slash, `return`):
# TLS ends at the upstream proxy, so an absolute one would point at http://.
absolute_redirect off;

# ── Baseline security headers ──────────────────────────────────────────────
# `always` ensures the headers are emitted on error responses (4xx/5xx) too.
add_header X-Content-Type-Options "nosniff" always;
Expand Down
Loading