Skip to content

Commit e082901

Browse files
committed
This extra README config got lost.
1 parent 70b117e commit e082901

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,21 @@ Rails.application.configure do
4545
end
4646
```
4747

48+
If you have configured your app to enforce SSL with the configuration option
49+
`config.force_ssl = true` you will need to insert the middleware in front of
50+
the middleware performing that enforcement instead, as LetsEncrypt do not allow
51+
redirects on their verification requests:
52+
53+
```ruby
54+
Rails.application.configure do
55+
# <...>
56+
57+
config.middleware.insert_before ActionDispatch::SSL, Letsencrypt::Middleware
58+
59+
# <...>
60+
end
61+
```
62+
4863
## Configuring
4964

5065
By default the gem will try to use the following set of configuration variables,

0 commit comments

Comments
 (0)