Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to load promts over https #42

Open
MrityunjoyS opened this issue Apr 8, 2021 · 2 comments
Open

Failing to load promts over https #42

MrityunjoyS opened this issue Apr 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@MrityunjoyS
Copy link

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 MrityunjoyS added the bug Something isn't working label Apr 8, 2021
@amoljagadambe
Copy link

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

@gaisml
Copy link

gaisml commented Jun 1, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants