feat: Test using HTTPS and HTTP2
This commit is contained in:
@@ -8,10 +8,27 @@ http {
|
||||
# No idea, but nginx refuses to start without it
|
||||
server_names_hash_bucket_size 64;
|
||||
|
||||
# The redirection server
|
||||
server {
|
||||
listen 80 default_server;
|
||||
add_header Strict-Transport-Security "max-age=31536000" always;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
# The actual webserver duties
|
||||
server {
|
||||
# server_name lateinicus;
|
||||
listen 80 default_server;
|
||||
listen 443 ssl http2;
|
||||
add_header Strict-Transport-Security "max-age=31536000" always;
|
||||
|
||||
# SSL configuration
|
||||
ssl_certificate /etc/ssl/lateinicus.pem;
|
||||
ssl_certificate_key /etc/ssl/lateinicus.key;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
ssl_session_timeout 10m;
|
||||
keepalive_timeout 70;
|
||||
|
||||
# Enable gzip compression
|
||||
gzip on;
|
||||
|
||||
Reference in New Issue
Block a user