Skip to content

Commit 9990783

Browse files
[fix] Load monitoring charts from dashboard domain
Removed OPENWISP_MONITORING_API_BASEURL so that monitoring charts use relative URLs and load from the dashboard domain. This fixes SSL certificate issues for users without trusted certs on the API domain. Closes #526
1 parent 05c9296 commit 9990783

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

images/openwisp_dashboard/module_settings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,12 @@
101101
else f":{HTTP_PORT}"
102102
)
103103
API_BASEURL = f'{HTTP_SCHEME}://{os.environ["API_DOMAIN"]}{HTTP_PORT}'
104-
DASHBOARD_BASEURL = f'{HTTP_SCHEME}://{os.environ["DASHBOARD_DOMAIN"]}{HTTP_PORT}'
105104

106105
OPENWISP_NETWORK_TOPOLOGY_API_URLCONF = "openwisp_network_topology.urls"
107106
OPENWISP_MONITORING_API_URLCONF = "openwisp_monitoring.urls"
108107
OPENWISP_RADIUS_API_URLCONF = "openwisp_radius.urls"
109108
OPENWISP_NETWORK_TOPOLOGY_API_BASEURL = API_BASEURL
110109
OPENWISP_NOTIFICATIONS_HOST = API_BASEURL
111110
OPENWISP_CONTROLLER_API_HOST = API_BASEURL
112-
OPENWISP_MONITORING_API_BASEURL = DASHBOARD_BASEURL
113111
OPENWISP_FIRMWARE_API_BASEURL = API_BASEURL
114112
OPENWISP_RADIUS_API_BASEURL = API_BASEURL

0 commit comments

Comments
 (0)