Answer the question
In order to leave comments, you need to log in
How to make a rail application work over https?
I am not familiar with ssl certificates. What I tried to read - a dark forest. But you need to run in production on https. While I'm trying on a staging server. How to do?
staging.rb nginx.conf
config.force_ssl = true
server {
listen 443;
server_name m.y.i.p;
ssl on;
ssl_certificate staging.crt;
ssl_certificate_key staging.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
root /var/www/site/current/public;
passenger_enabled on;
passenger_env_var RAILS_ENV staging;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question