Cleanup : all sites share a common syntax

This commit is contained in:
2023-11-08 23:37:28 +01:00
parent b3f47a87bb
commit 89d1e15096
67 changed files with 1058 additions and 1535 deletions

View File

@@ -7,47 +7,55 @@ pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1024;
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
include /etc/nginx/mime.types;
default_type text/plain;
##################
# SSL settings #
##################
##################
# Basic settings #
##################
ssl_protocols TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
##################
# Log settings #
##################
##################
# Gzip settings #
##################
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
gzip on;
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log;
##################
# Headers #
##################
##################
# Basic settings #
##################
add_header X-Web-Entry "Bifrost" always;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
##################
# SSL settings #
##################
##################
# Gzip settings #
##################
ssl_protocols TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
gzip on;
##################
# Log settings #
##################
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*.conf;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request_method $scheme://$host$request_uri $server_protocol" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*.conf;
include /etc/nginx/cloudflare;
}