BetterErrors / BetterErrors/better_errors

Suggestion for vagrant: Auto set 'trusted_ip'

Open
#311 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Ruby
Stars
6.9k
Forks
430
PR merge metrics
No merged PRs in 30d

Description

I would like to suggest to maybe change the documentation to simplify the configuration for those working with vagrant.

I have simply created this file, and then you can start the server normally (without setting `TRUSTED_IP`)

``` ruby
# /config/initializers/better_errors.rb
if defined? BetterErrors
trusted_ip = ENV['SSH_CLIENT'].split(' ').first
puts "=> better_errors is open for #{trusted_ip}"
BetterErrors::Middleware.allow_ip! trusted_ip
end
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.