The proxy

Configuration

The proxy is configured with environment variables. Each name is a path with two underscores between the parts: Awenen__Upstream is the setting Awenen:Upstream. Changes take effect when the container restarts.

Connecting your site and Awenen

Environment variable
Awenen__UpstreamRequiredDefault: none
Where requests go: your site’s address, such as http://localhost:3000 as a sidecar or http://site:3000 on a Docker network. Every path is forwarded with the visitor’s original hostname. The proxy won’t start without it.
Awenen__KeyDefault: none
Your site key from Sites. Without it the proxy still forwards everything, but sends nothing to Awenen.
Awenen__IngestUrlDefault: none
Where events go: https://ingest.awenen.com/v1/events. The heartbeat goes to the same host.

Visitor addresses

The proxy records the address each request came from. Behind a CDN or load balancer that is the CDN’s address, so tell the proxy which header carries the visitor’s own.

Environment variable
Awenen__ClientIpHeaderDefault: none
A header holding one address. X-Azure-ClientIP behind Azure Front Door, CF-Connecting-IP behind Cloudflare, X-Real-IP behind an nginx you run. A list such as X-Forwarded-For doesn’t work.
Awenen__Ja4HeaderDefault: none
A header holding the visitor’s TLS fingerprint, which helps link visitors. X-Azure-JA4-Fingerprint behind Azure Front Door.

Ports

Environment variable
Awenen__PortDefault: 8080
Where visitors’ requests arrive. Change it when your site already uses 8080 as a sidecar.
Awenen__StatusPortDefault: 8081
The proxy’s status page, /status, for probes and your own checks. Never publish it. Must differ from the port above.

OpenTelemetry

To see the proxy in your own monitoring (Azure Monitor, Grafana, Datadog or any OpenTelemetry collector), turn on export. It is off by default, and nothing of it goes to Awenen.

Environment variable
Awenen__Otlp__EnabledDefault: false
Exports metrics, logs and sampled traces.
Awenen__Otlp__TraceSampleRatioDefault: 0.01
The share of requests traced, from 0 to 1. 0 sends metrics and logs only.
OTEL_EXPORTER_OTLP_ENDPOINTDefault: none
Your collector, such as http://otel-collector:4317. The standard OpenTelemetry settings for protocol and headers apply too.

Logs

The proxy writes one JSON object a line to standard output. It is quiet by design: the startup lines, then only warnings and errors, each kind at most once a minute. For more while you investigate:

Terminal
Logging__LogLevel__Yarp=Warning           # every request the site didn't answerLogging__LogLevel__Default=Debug          # everything, brieflyLogging__Console__FormatterName=simple    # plain text instead of JSON