Updated nginx http

This commit is contained in:
Jef Roosens 2021-01-05 16:21:11 +01:00
parent e39e11b3fe
commit d43880fbba
2 changed files with 12 additions and 16 deletions

View file

@ -20,6 +20,16 @@ http {
# ssl_ecdh_curve X25519:prime256v1:secp521r1:secp384r1;
# Auto-route all HTTP requests to HTTPS
server {
listen 80;
listen [::]:80;
server_name _;
return 301 https://$host:443$request_uri;
}
# LOAD SITES
include sites_enabled/*.conf;
}