BetterErrors / BetterErrors/better_errors
Suggestion for vagrant: Auto set 'trusted_ip'
Open
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.