Skip to content

Commit

Permalink
dev: allow the use of ngrok as a proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Jan 30, 2022
1 parent 32663f6 commit 6955639
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
# limitations under the License.

# If redis not present, then just do this inline
if ENV["SIDEKIQ_REDIS_URL"].nil?
require 'sidekiq/testing/inline'
end
require "sidekiq/testing/inline" if ENV["SIDEKIQ_REDIS_URL"].nil?

Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
Expand Down Expand Up @@ -94,4 +92,7 @@
protocal = config.force_ssl ? "https://" : "http://"
$hostname = ENV.fetch("HOSTNAME", "localhost:3000")
$hosturl = [protocal, $hostname].join

# allow ngrok
config.hosts << /[a-z0-9-]+\.ngrok\.io/
end

0 comments on commit 6955639

Please sign in to comment.