Starting Thin with SSL support

Hi all,

I need to run Thin with SSL support.

The problem I'm having is that thin runs as "rails server thin" command : "script/rails server thin -b 0.0.0.0 -p 3000 -e test". Due to this reason, the "Server Arguments" in the run copnfiguration applies to the Rails server command, instead of Thin.

Is there a way to change the Script/rails server thin for simply running "Thin", or is there another way to give the --ssl --ssl-verify, --ssl-key-file and such to thin?

Thank you in advance,

Matías

0
4 comments
Avatar
Permanently deleted user

I have the same question.

0
Avatar
Permanently deleted user

I am looking for the same thing, did you solve this?

0
Avatar
Permanently deleted user

I am also searching for this.


I use THIN with

bundle exec thin start --ssl --ssl-verify --ssl-key-file /private/etc/apache2/ssl/server.key --ssl-cert-file /private/etc/apache2/ssl/server.crt

and it works in the terminal

But when I try to append the options in rubymine under "Run/Debug Configurations" -> "Edit Script Arguments" I get:

in `parse!': invalid option: --ssl (OptionParser::InvalidOption)

Can anyone help us / me out?


many thanks!

0
Avatar
Permanently deleted user

The answer is there is no easy way because we do not run thin server with "thin" command but run "rails" with thin server and I see no way to pass
server-specific options in this case :(  Perhaps you could create appropriate environment for this case and use it.

Regards, Oleg.

0

Please sign in to leave a comment.