Reference

Reference: server.client_address

server.client_address.file

Syntaxfile: <string>
Defaultnone
Contextserver.client_address
Reloadapplies on reload

File with header, presets and trusted_proxies (the panel integration writes it), merged when the configuration is loaded: its presets are added to the ones above; its header and trusted_proxies apply when neither header nor trusted_proxies is set here, otherwise its trusted_proxies are added only when its header (absent: x-forwarded-for) is the same as here, and left out with a warning when not. A - prefix makes a missing file optional. Relative to the configuration’s directory.

server.client_address.forwarded_proto

Syntaxforwarded_proto: true | false
Defaultfalse
Contextserver.client_address
Reloadapplies on reload

Peers of server.trusted_proxies (never presets) report the request’s scheme in X-Forwarded-Proto: exactly one value http or https; anything else keeps the listener’s. Other peers’ X-Forwarded-Proto is removed before any handler.

server.client_address.header

Syntaxheader: x-forwarded-for | forwarded | cf-connecting-ip | x-real-ip | true-client-ip
Defaultnone
Contextserver.client_address
Reloadapplies on reload

Header the peers of server.trusted_proxies use (default x-forwarded-for). Presets use their vendor’s header. A peer outside both groups is the client, whatever it sends.

server.client_address.presets

Syntaxpresets: [cloudflare, ...]
Default[]
Contextserver.client_address
Reloadapplies on reload

Vendor presets: their networks are trusted peers and report the client in the vendor’s header. A peer also in trusted_proxies belongs to trusted_proxies.

server.client_address.presets_dir

Syntaxpresets_dir: <string>
Default/var/lib/scalws/presets
Contextserver.client_address
Reloadapplies on reload

Directory with refreshed preset lists (<vendor>.txt, written by scalwsctl client-address update). Must be owned by root and not writable by group or others; a missing or invalid list means the one shipped with the release.