moved from tabs to double spaces
This commit is contained in:
parent
b9d3e89e26
commit
26e0f1f33b
|
@ -1,28 +1,28 @@
|
||||||
server {
|
server {
|
||||||
listen [::]:443 default_server ssl;
|
listen [::]:443 default_server ssl;
|
||||||
listen 443 default_server ssl;
|
listen 443 default_server ssl;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
access_log /var/log/nginx/default.access.log;
|
access_log /var/log/nginx/default.access.log;
|
||||||
error_log /var/log/nginx/default.error.log;
|
error_log /var/log/nginx/default.error.log;
|
||||||
|
|
||||||
# Generate a self-signed cert and key: "sudo openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt"
|
# Generate a self-signed cert and key: "sudo openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt"
|
||||||
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
|
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
|
||||||
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
|
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
|
||||||
|
|
||||||
# Generate a strong DH Param (can take 10 mins): "sudo openssl dhparam 4096 -out /etc/ssl/dhparam.pem"
|
# Generate a strong DH Param (can take 10 mins): "sudo openssl dhparam 4096 -out /etc/ssl/dhparam.pem"
|
||||||
ssl_dhparam /etc/ssl/dhparam.pem;
|
ssl_dhparam /etc/ssl/dhparam.pem;
|
||||||
|
|
||||||
ssl_protocols TLSv1.3 TLSv1.2 TLSv1.1;
|
ssl_protocols TLSv1.3 TLSv1.2 TLSv1.1;
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA512:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:DH+AESGCM:DH+AES256:RSA+AESGCM:!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
|
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA512:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:DH+AESGCM:DH+AES256:RSA+AESGCM:!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
|
||||||
|
|
||||||
ssl_session_cache shared:TLS:2m;
|
ssl_session_cache shared:TLS:2m;
|
||||||
|
|
||||||
# Everything is a 404
|
# Everything is a 404
|
||||||
location / {
|
location / {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue