Nerves.Artifact.expand_sites

You're seeing just the function expand_sites, go back to Nerves.Artifact module for more information.

Expands the sites helpers from artifact_sites in the nerves_package config.

Artifact sites can pass options as a third parameter for adding headers or query string parameters. For example, if you are trying to resolve artifacts hosted in a private Github repo, use :github_api and pass a user, tag, and personal access token into the sites helper:

{:github_api, "owner/repo", username: "skroob", token: "1234567", tag: "v0.1.0"}

Or pass query parameters for the URL:

{:prefix, "https://my-organization.com", query_params: %{"id" => "1234567", "token" => "abcd"}}

You can also use this to add an authorization header for files behind basic auth.

{:prefix, "http://my-organization.com/", headers: [{"Authorization", "Basic " <> System.get_env("BASIC_AUTH")}}]}