diff --git a/conf/nginx.conf b/conf/nginx.conf index 9c464eb..ed9845c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -21,4 +21,9 @@ proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; + + # Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } }