ruby on rails - Cheap SSL certification for an app hosted on Heroku -


i have rails app on heroku , need add there ssl certificate. in heroku add-ons section see possible buy on heroku add-on, price $20/month, $240 , cannot afford @ moment.

is there cheaper way ssl heroku app?

we've installed our ssl certificate on digitalocean.com instance running nginx reverse proxy.

trade-offs include bump in latency , paying bandwidth overages haven't been issues us.

here basic nginx config similar ours:

server {     listen 80;     rewrite ^ https://www.example.com$request_uri? permanent; }  # https server server {     listen 443;      ssl on;     ssl_certificate /root/example.crt;     ssl_certificate_key /root/example.key;      ssl_session_timeout 5m;      ssl_protocols sslv3 tlsv1;     ssl_ciphers all:!adh:!export56:rc4+rsa:+high:+medium:+low:+sslv3:+exp;     ssl_prefer_server_ciphers on;      location / {         proxy_pass   https://example.herokuapp.com/;     } } 

this basic example , made little more secure (possibly forcing ssl in app) gets started.

this gives opportunity speed app creating cache or serving app's static assets. upload precompiled assets , have nginx serve them this:

location  /assets/ {     root  /path-to/assets/;      expires 1y;     add_header cache-control public; } 

edit: july 2017

my, how things have changed. there lot of low/no cost solutions now. cloudflare great option.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -