rmfakecloud icon indicating copy to clipboard operation
rmfakecloud copied to clipboard

Question: getting proxy error: unsupported protocol scheme "" - bad install?

Open spacekookie opened this issue 3 years ago • 3 comments

Hey, I tried setting up this project with my remarkable 2 today and have run into some issues that I'm not sure how to resolve (or where I might have gone wrong).

I have rmfakecloud v0.0.3 running behind an nginx with this config:

server {
    listen 0.0.0.0:443 ssl http2 ;
    listen [::]:443 ssl http2 ;
    server_name <boop>;
    location /.well-known/acme-challenge {
        root /var/lib/acme/acme-challenge;
        auth_basic off;
    }
    ssl_certificate /var/lib/acme/<boop>/fullchain.pem;
    <....>

    location / {
        proxy_pass http://127.0.0.1:10999;
    }
}

I read something in another issue that nginx needs to be configured to proxy websockets? But I couldn't find details on what exactly to configure.

On the tablet I installed proxy and am pointing it at my domain, and getting these errors in the log:

Jun 01 21:35:38 reMarkable rmfake-proxy[4137]: 2021/06/01 21:35:38 http: proxy error: unsupported protocol scheme ""
Jun 01 21:37:09 reMarkable rmfake-proxy[4137]: 2021/06/01 21:37:09 http: proxy error: unsupported protocol scheme ""
Jun 01 21:37:47 reMarkable rmfake-proxy[4137]: 2021/06/01 21:37:47 http: proxy error: unsupported protocol scheme ""
Jun 01 21:42:04 reMarkable rmfake-proxy[4137]: 2021/06/01 21:42:04 http: proxy error: unsupported protocol scheme ""

Going to the rmfakecloud domain in the browser just shows a grey page with this text:

Working, 0 clients

I'm not really sure what to do now or if something has already gone wrong to the point where I can't progress further. Also apologies for creating an issue but I couldn't find a more appropriate channel to ask questions in (like irc or matrix).

Anyway, hope you can help me and thank you for putting all this work into creating an alternative cloud backend for the remarkable!

spacekookie avatar Jun 01 '21 21:06 spacekookie

you should put the scheme in the upstream proxy url e.g. https://thenginxproxy

for the nginx websockets config: https://github.com/ddvk/rmfakecloud/blob/master/docs/https.md

ddvk avatar Jun 01 '21 22:06 ddvk

I'm not sure I understand what you mean. I installed the proxy on the tablet via the automatic script and pointed it at my server.

I will try to update my nginx config to be in line with the documentation you linked me. Maybe it's an http2 vs http1.1 issue?

Also, this sentence from the readme is concerning to me:

(applies when you don't have security) connecting to the api will delete all your files, unless you mark them as not synced synced:false prior to syncing (advisable just to disconnect, reconnect the cloud)

Does that mean if the device doesn't have a pin code set? Or is it some other security feature?

spacekookie avatar Jun 02 '21 13:06 spacekookie

get the latest version, then you ll have to pair the device with the code which you get from the ui.

when using the proxy i stall script, use a url in the form of 'https://someaddress' if it https

ddvk avatar Jun 03 '21 10:06 ddvk