From 370e6562091f8718796d2aeb114aaab95479dcec Mon Sep 17 00:00:00 2001 From: flyinggrizzly Date: Mon, 29 May 2017 17:33:23 +0100 Subject: [PATCH 1/2] 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/). From 460af1885a3d119b3e3629a5a8baac2a0666cbae Mon Sep 17 00:00:00 2001 From: flyinggrizzly Date: Mon, 29 May 2017 19:42:07 +0100 Subject: [PATCH 2/2] Update troubleshooting.md --- docs/getting-started/troubleshooting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/troubleshooting.md b/docs/getting-started/troubleshooting.md index 999ab7887..29f32cc1b 100644 --- a/docs/getting-started/troubleshooting.md +++ b/docs/getting-started/troubleshooting.md @@ -199,8 +199,8 @@ __Symptom:__ I can't connect to my application because the server is sending an __Solution:__ -This can happen when your application is configured to enforce secure connections, but you don't have SSL set up for it. +This isn't usually an issue with Dokku, but rather an app config problem. This can happen when your application is configured to enforce secure connections/HSTS, but you don't have SSL set up for the app. 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/). +If this solves the issue temporarily, longer term you should consider [configuring SSL](http://dokku.viewdocs.io/dokku/configuration/ssl/).