From 370e6562091f8718796d2aeb114aaab95479dcec Mon Sep 17 00:00:00 2001 From: flyinggrizzly Date: Mon, 29 May 2017 17:33:23 +0100 Subject: [PATCH] Add entry for insecure connection issue in Rails If an application is configured to enforce secure connections and SSL isn't configured for Dokku or the application, browsers will raise an Invalid Connection error. Entry describes issue, a code resolution for Rails, and points users to the SSL docs. --- docs/getting-started/troubleshooting.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/getting-started/troubleshooting.md b/docs/getting-started/troubleshooting.md index 7300b457a..999ab7887 100644 --- a/docs/getting-started/troubleshooting.md +++ b/docs/getting-started/troubleshooting.md @@ -195,3 +195,12 @@ sudo ufw disable *** +__Symptom:__ I can't connect to my application because the server is sending an invalid response, or can't provide a secure connection. + +__Solution:__ + +This can happen when your application is configured to enforce secure connections, but you don't have SSL set up for it. + +In Rails at least, if your `application.rb` or `environmnents/production.rb` include the line `configure.force_ssl = true`, which includes HSTS try commenting that out and redeploying. + +If this solves the issue, longer term you may want to consider [configuring SSL](http://dokku.viewdocs.io/dokku/configuration/ssl/).