From c560c874c52b5d33f74756ab385ef9cd9e1b7b56 Mon Sep 17 00:00:00 2001 From: Bauke Date: Fri, 10 Jan 2025 19:55:55 +0100 Subject: [PATCH] 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 --- tildes/development.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tildes/development.ini b/tildes/development.ini index bd98b21..f463e17 100644 --- a/tildes/development.ini +++ b/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