Skip to content

Commit

Permalink
Docker: Allow web-console via Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Jun 5, 2019
1 parent 3f9b8e2 commit 69e1cea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/dummy/config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@
config.action_mailer.default_url_options = {
host: 'localhost:9292'
}

if File.file?('/.dockerenv')
docker_host_ip = `/sbin/ip route|awk '/default/ { print $3 }'`.strip
config.web_console.permissions = docker_host_ip
end
end

0 comments on commit 69e1cea

Please sign in to comment.