Просмотр исходного кода

Fixes #8019: Exclude metrics endpoint when LOGIN_REQUIRED is true

jeremystretch 4 лет назад
Родитель
Сommit
45ac1cfd54
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      docs/release-notes/version-3.1.md
  2. 1 1
      netbox/netbox/settings.py

+ 1 - 0
docs/release-notes/version-3.1.md

@@ -10,6 +10,7 @@
 * [#8003](https://github.com/netbox-community/netbox/issues/8003) - Fix cable tracing across bridged interfaces with no cable
 * [#8005](https://github.com/netbox-community/netbox/issues/8005) - Fix contact email display
 * [#8010](https://github.com/netbox-community/netbox/issues/8010) - Allow filtering devices by multiple serial numbers
+* [#8019](https://github.com/netbox-community/netbox/issues/8019) - Exclude metrics endpoint when `LOGIN_REQUIRED` is true
 
 ---
 

+ 1 - 1
netbox/netbox/settings.py

@@ -424,7 +424,7 @@ EXEMPT_PATHS = (
     f'/{BASE_PATH}graphql/',
     f'/{BASE_PATH}login/',
     f'/{BASE_PATH}oauth/',
-    f'/{BASE_PATH}metrics/',
+    f'/{BASE_PATH}metrics',
 )