Configure Prometheus Datasource with SSL

i want to configure a Prometheus datasource with SSL.
Since Prometheus does not expose metrics via HTTPS, I intend to add an Nginx before the Prometheus.
Can someone confirm that Grafana will be able use that configuration?

[Grafana with dataSource:https://myMetrics] —> [nginx with proxy ssl termination and proxy] --> [Prometheus]