From 1216039269762f6c7c193946bb99a0c2b85ea448 Mon Sep 17 00:00:00 2001 From: Eddi3_As Date: Tue, 11 Feb 2025 19:19:49 -0500 Subject: [PATCH] ssl et ngix possiblement la cause du probleme --- nginx/default.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nginx/default.conf b/nginx/default.conf index b698731..398b97e 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -8,6 +8,9 @@ upstream backend { server { listen 80; + + #FOR PROD + #listen 443 ssl; # Listen for SSL at port 443 as well location /api { rewrite /backend/(.*) /$1 break; @@ -27,5 +30,11 @@ server { location / { proxy_pass http://frontend; } + + #FOR PROD + # If a user tries to come through http, redirect them through https + #if ($scheme != "https") { + # return 301 https://$host$request_uri; + #} }