mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
632ca67e3f
The GrafanaComURL setting is currently used in two places: - the /api/gnet endpoint, which proxies all requests to the URL configured in GrafanaComURL - OAuth logins using grafana.com, where the auth URL, token URL and redirect URL are all configured to use the GrafanaComURL. This has worked fine until now because almost all Grafana instances have just used the default value, https://grafana.com. However, we now have a few different grafana.com's, some of which are behind IAP. The IAP causes the /api/gnet proxy to fail because the required cookies are not present in the request (how could they be?). Setting the [grafana_net.url] setting to an internal-only URL improves the situation slightly - the proxy works again just fine - but breaks any OAuth logins using grafana.com, because the user must be redirected to a publicly accessible URL. This commit adds an additional setting, `[grafana_com.api_url]`, which can be used to tell Grafana to use the new API URL when proxying requests to the grafana.com API, while still using the existing `GrafanaComURL` setting for other things. The setting will fall back to the GrafanaComURL setting + "/api" if unset. |
||
---|---|---|
.. | ||
testdata | ||
date_formats_test.go | ||
date_formats.go | ||
dynamic_settings_test.go | ||
expanders_test.go | ||
expanders.go | ||
provider.go | ||
setting_azure_test.go | ||
setting_azure.go | ||
setting_dashboard_previews.go | ||
setting_data_proxy.go | ||
setting_feature_toggles_test.go | ||
setting_feature_toggles.go | ||
setting_grafana_javascript_agent.go | ||
setting_plugins_test.go | ||
setting_plugins.go | ||
setting_quota.go | ||
setting_search.go | ||
setting_secure_socks_proxy.go | ||
setting_sentry.go | ||
setting_session_test.go | ||
setting_smtp.go | ||
setting_storage.go | ||
setting_test.go | ||
setting_unified_alerting_test.go | ||
setting_unified_alerting.go | ||
setting.go |