Updated nginx http
This commit is contained in:
parent
e39e11b3fe
commit
d43880fbba
2 changed files with 12 additions and 16 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue