1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Link to Host Authorization guides on blocked_host page

Provide additional configuration options on hosts, namely `RAILS_DEVELOPMENT_HOSTS` environment variable introduced in https://github.com/rails/rails/pull/41560
This commit is contained in:
Maas Lalani 2021-10-26 15:49:33 -04:00
parent 6e83d065ae
commit 93f509a600
No known key found for this signature in database
GPG key ID: F53774FA051C052A
2 changed files with 3 additions and 0 deletions

View file

@ -4,4 +4,5 @@
<main role="main" id="container">
<h2>To allow requests to <%= @host %> make sure it is a valid hostname (containing only numbers, letters, dashes and dots), then add the following to your environment configuration:</h2>
<pre>config.hosts &lt;&lt; "<%= @host %>"</pre>
<p>For more details view: <a href="https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization">the Host Authorization guide</a></p>
</main>

View file

@ -3,3 +3,5 @@ Blocked host: <%= @host %>
To allow requests to <%= @host %> make sure it is a valid hostname (containing only numbers, letters, dashes and dots), then add the following to your environment configuration:
config.hosts << "<%= @host %>"
For more details on host authorization view: https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization