Closed mimib00 closed 4 months ago
Hi, same issue as you.
I have a surrealdb running in a DigitalOcean droplet : SurrealDB command-line interface and server 1.3.1 for linux on x86_64
and with Surrealist V2.0 (M1 2021 Macbook air) i can't connect to it (To noticed with http endpoint signin it's work fine).
To noticed, i just read this on github readme :
To noticed, i config https on my remote server and after it's work fine.
Were you using the web app or the desktop app to make connections?
for me it's the desktop app.
Same on MacOS, desktop app, 1.4.2
Anyone have any pointers on a config that works for putting surreal behind nginx
? this seems to not be working
it's work me with :
/etc/nginx/proxy_params
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
And location :
location / {
proxy_pass http://0.0.0.0:8000;
include proxy_params;
}
For now i didn't use a subpath like /db because it's not working for me.
@macjuul I'm using the
Were you using the web app or the desktop app to make connections?
I'm using Desktop app and connecting to this database was working fine on older versions but when I installed this v2.0 it stopped working
Could you check if the logging console contains any errors?
Instructions on how to open can be found here
Ah, it looks like surreal is removing the /db
, so what should be domain.com/db/version
& domain.com/db/rpc
becomes domain.com/version
domain.com/version
& domain.com/rpc
include proxy_params;
This is the screenshot of the errors I got.
Currently facing the same issue
@ReziaBanks can you try to replace your ip by your_domain.com ?
I was able to fix it by just reconfiguring my Nginx file
Describe the bug I just installed v2.0 on M1 2021 MacBook Pro and for some reason, I can't connect to my remote database. before it was working just fine but now it's not working
To Reproduce Steps to reproduce the behavior: Just click connect and an error "Connection failed" appears.
Expected behavior it should connect to my remote database
Environment: M1 2021 MacBook Pro