diff --git a/nginx.conf.tmpl b/nginx.conf.tmpl index f391b22..9e4c4fc 100644 --- a/nginx.conf.tmpl +++ b/nginx.conf.tmpl @@ -28,6 +28,10 @@ server { } location / { + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + try_files /dev/null @api; }