All checks were successful
CI / Build nginx docker images (push) Successful in 21m54s
129 lines
3.4 KiB
Nginx Configuration File
129 lines
3.4 KiB
Nginx Configuration File
|
|
load_module modules/ngx_http_xslt_filter_module.so;
|
|
#load_module modules/ngx_http_image_filter_module.so;
|
|
load_module modules/ngx_http_geoip_module.so;
|
|
#load_module modules/ngx_http_perl_module.so;
|
|
load_module modules/ngx_stream_geoip_module.so;
|
|
load_module modules/ngx_http_headers_more_filter_module.so;
|
|
load_module modules/ngx_http_brotli_static_module.so;
|
|
load_module modules/ngx_http_brotli_filter_module.so;
|
|
#load_module modules/ngx_http_js_module.so;
|
|
|
|
user nginx;
|
|
worker_processes 1;
|
|
|
|
error_log /var/log/nginx/error.log warn;
|
|
pid /var/run/nginx.pid;
|
|
|
|
pcre_jit on;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
access_log /var/log/nginx/access.log main;
|
|
|
|
sendfile on;
|
|
aio threads;
|
|
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
server_tokens off;
|
|
|
|
keepalive_disable msie6;
|
|
|
|
# intermediate configuration
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ecdh_curve X25519:prime256v1:secp384r1;
|
|
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
|
ssl_prefer_server_ciphers off;
|
|
|
|
# see also ssl_session_ticket_key alternative to stateful session cache
|
|
ssl_session_timeout 1d;
|
|
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
|
|
ssl_session_tickets off;
|
|
|
|
http2 on;
|
|
http3 on;
|
|
http3_hq on;
|
|
quic_gso on;
|
|
quic_retry on;
|
|
ssl_early_data off;
|
|
|
|
gzip_static on;
|
|
gzip on;
|
|
gzip_comp_level 5;
|
|
gzip_min_length 512;
|
|
gzip_proxied any;
|
|
gzip_vary on;
|
|
gzip_disable "msie6";
|
|
|
|
gzip_types
|
|
application/atom+xml
|
|
application/javascript
|
|
application/json
|
|
application/ld+json
|
|
application/manifest+json
|
|
application/rss+xml
|
|
application/vnd.geo+json
|
|
application/vnd.ms-fontobject
|
|
application/x-font-ttf
|
|
application/x-web-app-manifest+json
|
|
application/xhtml+xml
|
|
application/xml
|
|
font/opentype
|
|
image/bmp
|
|
image/svg+xml
|
|
image/x-icon
|
|
text/cache-manifest
|
|
text/css
|
|
text/plain
|
|
text/vcard
|
|
text/vnd.rim.location.xloc
|
|
text/vtt text/x-component
|
|
text/x-cross-domain-policy
|
|
application/wasm;
|
|
|
|
|
|
|
|
brotli_static on;
|
|
brotli on;
|
|
brotli_comp_level 6;
|
|
brotli_types
|
|
application/atom+xml
|
|
application/javascript
|
|
application/json
|
|
application/rss+xml
|
|
application/vnd.ms-fontobject
|
|
application/x-font-opentype
|
|
application/x-font-truetype
|
|
application/x-font-ttf
|
|
application/x-javascript
|
|
application/xhtml+xml
|
|
application/xml
|
|
font/eot
|
|
font/opentype
|
|
font/otf
|
|
font/truetype
|
|
image/svg+xml
|
|
image/vnd.microsoft.icon
|
|
image/x-icon
|
|
image/x-win-bitmap
|
|
text/css
|
|
text/javascript
|
|
text/plain
|
|
text/xml
|
|
application/wasm;
|
|
|
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
}
|