Comment 25 for bug 1407060

Revision history for this message
Tycho Schenkeveld (tycho-schenkeveld) wrote : Re: [Bug 1407060] Re: Can't connect to Rainy through https

Ok once more ;) I was trying to make it clear which bits need to be filled
in with fancy formatting, but I see the launchpad bugtracker has messed
this up by adding asterisks around the part I had put in bold.

So just to make it clear, here it is in plain text. Because it won't work
with those *'s in it. And yes it fixes the problem that Luis is having, I
was having exactly the same! It took me quite some messing around to get it
working ;)

server {
  listen <external port for rainy clients> ssl;
  server_name <FQDN of my server>;
  ssl_certificate /etc/ssl/nginx/znc.pem;
  ssl_certificate_key /etc/ssl/nginx/znc.key;
  # These certs are free signed certs from StartSSL (highly recommended!)
so that you don't get the usual self-signed certs warnings. Not sure if it
will even work without it!

 location / {
    rewrite https://<Server FQDN>:<External port> http://<Server
FQDN>:<internal port that Rainy listens on> ;
    sub_filter_types application/json;
    sub_filter{
    rewrite http://<Server FQDN>:<internal port that Rainy listens on>
https://<Server FQDN>:<External port> ;
    sub_filter_once off;
    chunked_transfer_encoding off;
    proxy_set_header Host $host;
    proxy_pass http://localhost:<internal port that Rainy listens on>;
  }

On Thu, Apr 23, 2015 at 10:14 PM, Olivier Bilodeau <
<email address hidden>> wrote:

> @Tycho: can you share your nginx / rainy config?
>
> If he's not subscribed to the bug's notification emails we'll have to email
> him. Unfortunately I can't verify since I'm offline right now. Sorry.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1407060
>
> Title:
> Can't connect to Rainy through https
>
> Status in Tomdroid - Tomboy note-taking on Android:
> Incomplete
>
> Bug description:
> When trying the initial authentication with Rainy, I get "The
> connection to the server has failed, plase check that the address you
> entered is correct".
>
> Configuring Rainy to not use ssl and replacing https with http on the
> server url, it seems to work. This may be a regression of #1153289 as
> I am using a self-signed certificate, and it used to work fine.
>
> I run tomdroid 0.7.5 on Android L and Rainy 0.5.0.
>
> Let me know if you need any other information.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/tomdroid/+bug/1407060/+subscriptions
>