You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.8 KiB
60 lines
1.8 KiB
4 years ago
|
# DO NOT EDIT - managed by Ansible.
|
||
|
|
||
|
user nginx nginx;
|
||
|
pid /run/nginx.pid;
|
||
|
worker_processes auto;
|
||
|
worker_rlimit_nofile 1000000;
|
||
|
|
||
|
events {
|
||
|
multi_accept on;
|
||
|
worker_connections 65535;
|
||
|
use epoll;
|
||
|
}
|
||
|
|
||
|
http {
|
||
|
charset utf-8;
|
||
|
sendfile on;
|
||
|
sendfile_max_chunk 512k;
|
||
|
tcp_nopush on;
|
||
|
tcp_nodelay on;
|
||
|
server_tokens off;
|
||
|
log_not_found off;
|
||
|
types_hash_max_size 2048;
|
||
|
client_max_body_size 16M;
|
||
|
reset_timedout_connection on;
|
||
|
server_names_hash_bucket_size 128;
|
||
|
|
||
|
# MIME
|
||
|
include mime.types;
|
||
|
default_type application/octet-stream;
|
||
|
|
||
|
# Logging
|
||
|
access_log /var/log/nginx/access.log;
|
||
|
error_log /var/log/nginx/error.log warn;
|
||
|
|
||
|
# Limits
|
||
|
limit_req_log_level warn;
|
||
|
limit_req_zone $binary_remote_addr zone=login:10m rate=10r/m;
|
||
|
|
||
|
# SSL
|
||
|
ssl_session_timeout 1d;
|
||
|
ssl_session_cache shared:SSL:150m;
|
||
|
ssl_session_tickets off;
|
||
|
|
||
|
# Diffie-Hellman parameter for DHE ciphersuites
|
||
|
ssl_dhparam /etc/nginx/dhparam.pem;
|
||
|
|
||
|
# Mozilla Intermediate configuration
|
||
|
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
|
||
|
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;
|
||
|
|
||
|
# OCSP Stapling
|
||
|
ssl_stapling on;
|
||
|
ssl_stapling_verify on;
|
||
|
resolver 1.1.1.1 1.0.0.1 valid=60s;
|
||
|
resolver_timeout 2s;
|
||
|
|
||
|
# Load configs
|
||
|
include /etc/nginx/conf.d/*.conf;
|
||
|
}
|