feat(nginx): switch to include-based headers

This allows multiple Nginx configuration files to use the same headers
without including them in each file.
This commit is contained in:
inference 2025-06-28 21:09:45 +00:00
parent d9923a82f6
commit f1299e434d
Signed by: inference
SSH Key Fingerprint: SHA256:/O3c09/4f1lh4zrhFs2qvQEDda6dZbTwG9xEcj8OfWo

View File

@ -1,6 +1,6 @@
# Inferencium - xb-00-01
# Nginx - Configuration - Website
# Version: 10.0.0-alpha.7
# Version: 10.0.0-alpha.8
# Copyright 2022 Jake Winters
# SPDX-License-Identifier: BSD-3-Clause
@ -57,12 +57,10 @@ server {
ssl_session_cache shared:MozSSL:10m;
ssl_session_cache shared:ssl_session_cache:10m;
ssl_session_tickets off;
add_header Strict-Transport-Security "max-age=126200000; includeSubDomains; preload";
add_header X-Frame-Options "DENY";
add_header X-Content-Type-Options nosniff;
add_header Content-Security-Policy "default-src 'self'; img-src 'self'; media-src 'self'; object-src 'none'; script-src 'none'; connect-src 'none'; frame-src 'none'; style-src 'self'; font-src 'self'";
add_header Referrer-Policy no-referrer;
## Headers
include /etc/nginx/include/header-security.conf;
client_max_body_size 16m;
ignore_invalid_headers off;