Closed GoogleCodeExporter closed 8 years ago
This is most likely behavior as intended. If you decide to use a reverse proxy
in front of ShellInABox, it is your responsibility to configure the proxy to do
the SSL encoding.
The whole point of a proxy is that it can see the plain text communication and
make changes to it (e.g. rewrite URLs, cache content, ...). So, while the
communication between the browser and the proxy might be encrypted, the
communication between the proxy and the web server (i.e. ShellInABox) has to be
plain text for the proxy to do its job.
Original comment by zod...@gmail.com
on 18 Aug 2010 at 4:18
heya,
Aha, aweseome, thanks for the very quick reply =). It's so awesome to see an
author who responds so quickly on his project.
Ok, so fair enough - if it's a setup thing, you wouldn't happen to know what I
have to do to get Nginx to work with Shellinabox? Or any pointers on what sort
of things I should look for?
And I'm guessing if I add "-t" and disable SSL like that - over the internet,
that's completely insecure right? And all my keystrokes are sent in the clear?
Thanks,
Victor
Original comment by victorh...@gmail.com
on 18 Aug 2010 at 9:04
For nginx, something like this should work:
server {
location / {
proxy_pass http://localhost:4200;
}
}
server {
listen 443;
ssl on;
ssl_certificate /var/lib/shellinabox/certificate.pem;
ssl_certificate_key /var/lib/shellinabox/certificate.pem;
location / {
proxy_pass http://localhost:4200;
}
}
If you decide to run the service at a different relative URL, you have to edit
1) the "location" in the nginx configuration file, and 2) pass a suitable
"-s/...:LOGIN" option to shellinaboxd. On Debian, you can probably do the
latter by editing /etc/default/shellinabox.
In general, when using a reverse proxy, you should probably also set the
--localhost-only option.
You do _not_ want to give the --disable-ssl option. While you do not want
ShellInABox to do the SSL encryption, you still want it to automatically change
URLs to the https URL.
Original comment by zod...@gmail.com
on 18 Aug 2010 at 10:02
Original issue reported on code.google.com by
victorh...@gmail.com
on 18 Aug 2010 at 2:30