diff --git a/deployment/nginx/default.conf b/deployment/nginx/default.conf index 69222dcd26..86b36109f7 100644 --- a/deployment/nginx/default.conf +++ b/deployment/nginx/default.conf @@ -2,6 +2,10 @@ server { listen 80 default_server; listen [::]:80 default_server; + location /api { + return 301 https://$host$request_uri/; + } + location /api/ { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;