Closed rmopl closed 11 years ago
Well at first, you have to decide how to handle SSL: Either let Rainy use it's built-in SSL, or use SSL with Nginx as a reverse proxy to Rainy. If you have other SSL services running in the nginx instance, you will want to disable Rainy's SSL by providing a http:// prefix urls as ListenUrl
in the settings.conf.
Then it is just a matter of configuring nginx as a reverse proxy, which is not Rainy related. Assuming you got Rainy running to listen on port 8080, I didn't test this code and I think as this is nginx related you should propably consult nginx docs, but this might work:
location / {
proxy_set_header Host $host;
proxy_pass http://localhost:8080;
}
Also Rafal, I would love to play with NGINX. So if you need help and want to do a desktop share session, let me know. Ping me on Skype or something.
Jared L Jennings
How to deploy rainy behind nginx? Preferably under alreadyexistingdomain.tld/rainy or similar?
I tried to proxy like this but it keeps redirecting me incorrectly which became more of an issue with the new webUI. Is there a better/canonical way?
Deployment behind nginx would be desirable since that way it handles real ssl certs in common format, runs on the default port, and generally acts more like a webserver.