mimic-recording-studio icon indicating copy to clipboard operation
mimic-recording-studio copied to clipboard

Failing to load promts over https

Open MrityunjoyS opened this issue 3 years ago • 2 comments

I'm trying to run mimic-recording-studio over https, hosting it in server. For that I've set up nginx. My nginx.conf file -->

server { listen 6060 ssl; server_name example.recoder.net; ssl_certificate //nginx-selfsigned.crt; ssl_certificate_key //nginx-selfsigned.key;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
# enable WebSockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";


location / {
    proxy_pass http://localhost:3000/;
    add_header 'Access-Control-Allow-Origin' '*';

} }

After setting this up, I'm no longer getting microphone permission error. But when I'm trying to start recording promts are not getting load, getting error -

error loading prompt... is the backend running?

And in UI I'm getting error :- Screenshot from 2021-04-08 23-33-39

Please suggest any workaround.

MrityunjoyS avatar Apr 08 '21 18:04 MrityunjoyS

same with me. please do update with solutions if anyone has any.

amoljagadambe avatar May 31 '21 05:05 amoljagadambe

Found the solution, change the API root in index.js file. in code, @krisgesling add localhost which will be false in case if you are adding the code on the cloud you have to give the URL of cloud.

and if your using HTTPS then change the python URL to HTTPS also cause if you don't then the frontend will block your request on basis of mixed content.

gaisml avatar Jun 01 '21 06:06 gaisml