HTTP variables
$scheme variable (HTTP)
HTTP or HTTPS scheme at Nginx, not necessarily the original scheme before another proxy.
Formal Syntax & Structure
nginx syntaxnginx
$schemeWorking Example
Example Snippetnginx
# Partial location example; synthetic lab onlyreturn 200 "$scheme\n";