Browse Source

Fix the Pyramid debug toolbar not being accessible in the Docker-based Vagrant environment.

Closes tildes-community/tildes-cf#8

See merge request tildes-community/tildes-cf!3
develop
Bauke 1 month ago
committed by Andrew Shu
parent
commit
c560c874c5
  1. 4
      tildes/development.ini

4
tildes/development.ini

@ -19,7 +19,9 @@ redis.unix_socket_path = /run/redis/socket
# Requests from the host machine through Vagrant will have their IP as
# 10.0.2.2 (which is an alias for the loopback interface) so we need
# to enable the debugtoolbar for that IP as well.
debugtoolbar.hosts = 127.0.0.1 ::1 10.0.2.2
# 172.17.0.0/16 is the range of IPs that Docker uses internally so we'll need
# those as well for the Vagrant Docker provider.
debugtoolbar.hosts = 127.0.0.1 ::1 10.0.2.2 172.17.0.0/16
# Exclude the metrics page from the debug toolbar, since Prometheus scrapes
# it constantly and we don't need to see that in the list of requests

Loading…
Cancel
Save