diff --git a/nginx/nginx.conf b/nginx/nginx.conf index f5072ac..1c872eb 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -2,8 +2,9 @@ server { listen 80; server_name api.bereal.michaeldemar.co; - # Redirect all HTTP traffic to HTTPS - return 301 https://$host$request_uri; + location / { + return 301 https://$host$request_uri; + } } server {