18 lines
727 B
Plaintext
18 lines
727 B
Plaintext
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name forms.libraryofcode.org;
|
|
ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
|
ssl_protocols TLSv1.1 TLSv1.2;
|
|
ssl_prefer_server_ciphers on;
|
|
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_dhparam /etc/nginx/dhparam.pem;
|
|
ssl_ecdh_curve secp384r1;
|
|
|
|
root /var/www/forms;
|
|
rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
|
|
try_files $uri.html $uri/ $uri =404;
|
|
} |