heroku: set SSL certificates on Free Plan?

前端 未结 8 833
遇见更好的自我
遇见更好的自我 2020-12-24 13:20

I would like to set some SSL certificates for one app I have on heroku (a simple application based on nodeJS + Vue).

I know if I upgrade to the Hobby Plan (7$ for mo

8条回答
  •  无人及你
    2020-12-24 14:18

    One way around this could be setting up a proxy server on a host you can set SSL certificates on and then simply forward requests to the free herokudns domain using encryption as well.

    You'd have to have a separate server with something like nginx or httpd running.. I am not sure of a free service to host the proxy, but usually when you sign up for a domain you may get a hosting addon with it, or perhaps people already have acess to an encrypted host and just want to also use Heroku for their node applications.

    Setting up a httpd proxy would look somewhat like this (from https://serverfault.com/questions/84821/apache-proxypass-with-ssl):

    
    ServerName customdomain.com
    SSLProxyEngine On
    SSLProxyCheckPeerCN on
    SSLProxyCheckPeerExpire on
    ProxyPass / https://heroku-app-name.herokuapp.com
    ProxyPassReverse / https://heroku-app-name.herokuapp.com
    
    

    This way you have full encryption all the way :)

提交回复
热议问题