facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.29k stars 26.71k forks source link

SSL Protocol error in nginx + react + nodejs #13299

Closed PhantomGuru0427 closed 1 year ago

PhantomGuru0427 commented 1 year ago

I am trying to deploy my MERN Stack application with domain and ssl. But I just faced a ssl protocol error when I use https inside react frontend.

InnovizionSoft commented 1 year ago

You can use nginx configuration to use backend api. location /api/ {

Proxy configuration for forwarding requests to backend API

        proxy_pass http://3dlamoda.co.il:8081/api/;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }
PhantomGuru0427 commented 1 year ago

It will be a solution. thanks.