The controller's api port was a hostPort on the node, which Pod Security baseline and restricted forbid. It is a ClusterIP Service now, behind a NetworkPolicy that admits only the node. The host's resolver (the hive's dnsmasq) forwards cluster.local to CoreDNS, and the gateway dials the Service by name through nginx's resolver. tcp.hostAddress goes.
480 lines
23 KiB
Nix
480 lines
23 KiB
Nix
# The swarm-level web UI: a static bundle served by the gateway's nginx,
|
|
# behind authelia. Distinct from the per-hive dashboard (hive-c0re's, on
|
|
# `deploy.hive-controller.dashboardDomain`) — this one answers for the swarm apex and is the
|
|
# operator's view across hives.
|
|
#
|
|
# Options, and the swarm apex's vhost, declared below through
|
|
# `gateway.vhosts`: a service module says *how* it is reached, the gateway
|
|
# says *whether this host serves it*.
|
|
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
deployCfg = config.services.hyperhive.deploy;
|
|
gatewayCfg = config.services.hyperhive.gateway;
|
|
autheliaCfg = config.services.hyperhive.swarm.authelia;
|
|
|
|
# Repeated verbatim by every location that should be operator-gated
|
|
# (`/`, `/api/docs/`; `/api/` takes `authRequest` with its own 401
|
|
# handler) rather than set once on the server:
|
|
# nginx's `auth_request` does NOT inherit across sibling locations, so
|
|
# setting it only on the page would leave this UI's own API and API
|
|
# docs reachable without a session.
|
|
authRequest = ''
|
|
auth_request /__hive_authelia;
|
|
# Captured BEFORE the error_page jump: inside the 401 handler
|
|
# `$request_uri` is the internal one, so building the return
|
|
# link there sends the operator back to the auth subrequest
|
|
# instead of the page they asked for.
|
|
auth_request_set $target_url $scheme://$http_host$request_uri;
|
|
'';
|
|
loginRedirect = "https://${autheliaCfg.domain}/?rd=$target_url";
|
|
|
|
# What `swarmctl login` reads to find the swarm's SSO provider (RFC 9728): the
|
|
# `/api/` 401 names this document in its challenge, and the document names the
|
|
# authorization server. `resource` is the audience a `swarmctl` token carries
|
|
# (`swarmctl/src/remote.rs`, `swarm-authelia.nix`).
|
|
protectedResourcePath = "/.well-known/oauth-protected-resource/api/";
|
|
protectedResource = builtins.toJSON {
|
|
resource = "https://${apex}/api/";
|
|
authorization_servers = [ "https://${autheliaCfg.domain}" ];
|
|
};
|
|
challenge = ''Bearer realm="swarm", resource_metadata="https://${apex}${protectedResourcePath}"'';
|
|
swarmAuthRequest = ''
|
|
${authRequest}
|
|
error_page 401 =302 ${loginRedirect};
|
|
'';
|
|
|
|
# What the swarm UI's pages may load. It is a same-origin SPA that holds an
|
|
# operator session: no inline script, nothing from another origin except
|
|
# images (agent messages can render a markdown image), and no framing
|
|
# outside this origin. `style-src` keeps `'unsafe-inline'` because the
|
|
# bundle sets inline styles.
|
|
contentSecurityPolicy = lib.concatStringsSep "; " [
|
|
"default-src 'self'"
|
|
"img-src 'self' data: https:"
|
|
"style-src 'self' 'unsafe-inline'"
|
|
"frame-ancestors 'self'"
|
|
"base-uri 'self'"
|
|
"form-action 'self'"
|
|
"object-src 'none'"
|
|
];
|
|
# `add_header` in a location replaces every header inherited from the
|
|
# server, so each static location repeats the gateway's own and adds the
|
|
# policy and its cache rule. The bundle's files are named by content hash
|
|
# (`/static/main-<hash>.js`): those never change and are cached for a year.
|
|
# The cache rule has no `always`, so an error answer (a 404 for a hash that
|
|
# is gone) is never marked cacheable.
|
|
# Everything else the page loads by a fixed name (the entry document,
|
|
# `sw.js`, the manifest, `colors.css`, which holds the palettes) must be
|
|
# revalidated, or a deploy can leave a browser on an old document that points
|
|
# at scripts that no longer exist.
|
|
staticHeaders = cache: ''
|
|
${gatewayCfg.lib.securityHeaders}
|
|
add_header Content-Security-Policy "${contentSecurityPolicy}" always;
|
|
add_header Cache-Control "${cache}";
|
|
'';
|
|
revalidate = "no-cache";
|
|
immutable = "public, max-age=31536000, immutable";
|
|
swarmCfg = config.services.hyperhive.swarm;
|
|
hiveDomain = config.services.hyperhive.domain;
|
|
|
|
# The swarm apex this UI answers on. Total on a null domain (`.invalid`,
|
|
# RFC 2606) so `hive-network.nix`'s required-domain assertion is what fires,
|
|
# rather than a coercion error from here — same idiom as
|
|
# `swarm-otel-service.nix`'s `domainBase`.
|
|
apex = if swarmCfg.domain == null then "swarm.invalid" else swarmCfg.domain;
|
|
|
|
# Matrix discovery is answered at the server name, so the apex serves it when
|
|
# that is the swarm domain (the default). A homeserver pinned to a hive
|
|
# domain is answered by that hive's vhost (./glue-matrix-hive-discovery.nix).
|
|
# Built from `gatewayHost` alone, so it does not matter which host runs the
|
|
# homeserver. The URLs carry no port: `gateway.httpsPort` only sets what the
|
|
# gateway listens on.
|
|
matrixCfg = swarmCfg.matrix;
|
|
serverName = if matrixCfg.serverName != null then matrixCfg.serverName else apex;
|
|
servesMatrixDiscovery = matrixCfg.gatewayHost != null && serverName == apex;
|
|
|
|
# How the gateway reaches the controller. Its unix socket by default. With
|
|
# the controller's TCP listener on, over TLS by the listener's name, with
|
|
# the gateway's client leaf — the listener refuses a handshake without it
|
|
# (./swarm-controller.nix). `controllerDial` is empty on the socket, so the
|
|
# two locations below render exactly what they rendered before the
|
|
# listener existed.
|
|
# `toString` below so an unset `domain` reaches the assertion that names it
|
|
# instead of failing evaluation first.
|
|
controllerTcp = swarmCfg.controller.tcp;
|
|
# In the cluster the listener is behind a Service, which the host's resolver
|
|
# answers through the cluster's DNS. The upstream is a variable, so nginx asks
|
|
# the resolver per request: a name in the `proxy_pass` is looked up when the
|
|
# configuration loads, which fails the load while the cluster is not up and
|
|
# keeps the address of a Service that has since been recreated. The name the
|
|
# certificate is verified as stays `tcp.domain` (`controllerDial`), so the
|
|
# Service needs no certificate name of its own.
|
|
controllerOnCluster = deployCfg.swarm-controller.runtime == "k8s";
|
|
controllerUpstream =
|
|
if controllerTcp.enable then
|
|
if controllerOnCluster then
|
|
"https://$swarm_controller_upstream"
|
|
else
|
|
"https://${toString controllerTcp.domain}:${toString controllerTcp.port}"
|
|
else
|
|
"http://unix:${deployCfg.swarm-controller.socketPath}:";
|
|
# `proxy_http_version` and `Connection` because `recommendedProxySettings`,
|
|
# which sets them, is off on a location that pins its own `Host`: without
|
|
# them nginx speaks HTTP/1.0 to the upstream, which ends the SSE streams'
|
|
# keep-alive.
|
|
controllerDial = lib.optionalString controllerTcp.enable ''
|
|
${lib.optionalString controllerOnCluster ''
|
|
resolver ${config.services.hyperhive.network.bridgeIp} valid=10s ipv6=off;
|
|
set $swarm_controller_upstream ${deployCfg.swarm-controller.tcp.serviceHost}:${toString controllerTcp.port};
|
|
''}
|
|
${gatewayCfg.lib.verifiedProxyToWithClientCert (toString controllerTcp.domain) {
|
|
certificate = deployCfg.swarm-controller.tcp.gatewayClientCertFile;
|
|
key = deployCfg.swarm-controller.tcp.gatewayClientKeyFile;
|
|
}}
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection "";
|
|
'';
|
|
controllerDialAttrs = lib.optionalAttrs controllerTcp.enable {
|
|
# nixpkgs appends its own `Host $host` after `extraConfig`, which would
|
|
# override the pinned one — see the comment on verifiedProxyTo in
|
|
# hive-gateway/vhost-lib.nix.
|
|
recommendedProxySettings = false;
|
|
};
|
|
in
|
|
{
|
|
# No `enable` of its own: the UI is on wherever
|
|
# `services.hyperhive.deploy.swarm-controller.enable` is, because it reaches
|
|
# that daemon over its unix socket, or over its TCP listener when that is on.
|
|
# There is no `domain` option: the UI answers on the swarm apex, which the
|
|
# swarm already declares once.
|
|
|
|
# ⚠️ Neither `services.hyperhive.swarm.ui` nor `deploy.swarm-ui` is a
|
|
# namespace for anything but the old spellings: the UI's `package` lives
|
|
# under `deploy.swarm-controller.ui`, and the old paths survive purely as
|
|
# rename/removal entries in ./deploy.nix.
|
|
options.services.hyperhive.deploy.swarm-controller.ui.package = lib.mkOption {
|
|
type = lib.types.package;
|
|
defaultText = lib.literalExpression "hyperhive.packages.\${system}.swarm-ui";
|
|
description = ''
|
|
Static build of the swarm UI. nginx serves this store path
|
|
directly — there is no server-side component beyond the
|
|
controller's own API.
|
|
|
|
Wired by default from this flake's own package set (see
|
|
`flake.nix`), the same way `deploy.swarm-controller.package` is. There
|
|
is deliberately **no overlay** in this project, so a
|
|
`pkgs.swarm-ui` default here would name an attribute that does
|
|
not exist on any real deployment.
|
|
'';
|
|
};
|
|
|
|
config = lib.mkIf deployCfg.swarm-controller.enable {
|
|
assertions = [
|
|
{
|
|
# The hive domain has its own vhost (the redirect to the dashboard, and
|
|
# discovery for a pinned server name). A second vhost claiming the same
|
|
# server_name is not an error to nginx — it picks one and logs a
|
|
# conflict — so the failure would surface as "the swarm UI is
|
|
# sometimes a redirect", which is far harder to read than an
|
|
# eval failure naming both options.
|
|
assertion = apex != hiveDomain;
|
|
message = ''
|
|
services.hyperhive.swarm.domain (${apex}) must differ from
|
|
services.hyperhive.domain (${hiveDomain}) — the hive domain is
|
|
already served by the gateway's own vhost for it (the redirect to
|
|
the dashboard, and discovery for a pinned server name), and two vhosts
|
|
claiming one server_name silently resolve to whichever nginx
|
|
picks.
|
|
|
|
Set services.hyperhive.swarm.domain to a name distinct from
|
|
this hive's.
|
|
'';
|
|
}
|
|
];
|
|
|
|
# The swarm UI's own gateway surface. Published to agents on the
|
|
# bridge deliberately: reachability is not the access control here —
|
|
# the `auth_request` below and authelia's `group:admins` rule
|
|
# are, and an agent that resolves the name still cannot open the
|
|
# page.
|
|
#
|
|
# The apex is a SIBLING of `forge.<swarm>` / `chat.<swarm>`, not a
|
|
# child of anything the resolver already answers for, so the
|
|
# `/<hive domain>/` rule does not cover it and this record is what
|
|
# makes the name resolve at all.
|
|
services.hyperhive.gateway.localNames = [ apex ];
|
|
|
|
# Gateway only — static files served by nginx, no container of its
|
|
# own and so nothing to resolve.
|
|
services.hyperhive.gateway.enable = lib.mkDefault true;
|
|
|
|
# This UI's own swagger docs, always same-origin (`/api/docs/` below)
|
|
# so — unlike authelia/matrix/forge's entries — this one needs no
|
|
# host name and is never conditional on anything but this module
|
|
# being enabled at all. See
|
|
# `services.hyperhive.deploy.swarm-controller.links`'s description.
|
|
services.hyperhive.deploy.swarm-controller.links = [
|
|
{
|
|
label = "API docs";
|
|
icon = "🧬";
|
|
url = "/api/docs/";
|
|
}
|
|
];
|
|
|
|
# The swarm's front page.
|
|
#
|
|
# ⚠️ `auth_request` answers "is there a session", not "is this an
|
|
# operator". The operator-only part is authelia's `access_control`
|
|
# rules (`operatorsOnly` in ./swarm-authelia.nix): `group:admins`, then
|
|
# a `deny` for everyone else. Agents have authelia accounts of their
|
|
# own, and without those rules a session alone would open this page.
|
|
#
|
|
# ⚠️ Failure mode here is LOCKED OUT, not unprotected: a subrequest
|
|
# that wrongly denies takes the whole UI away. That is why the
|
|
# redirect target and the header set below come from a measured
|
|
# source rather than an example.
|
|
#
|
|
# ⚠️ `forceSSL`, not `addSSL` like every other vhost — not a
|
|
# hardening preference, the only way this page works at all.
|
|
# authelia answers the auth subrequest for an `http://` target with
|
|
# **400**, and nginx's `auth_request` only understands 2xx/401/403,
|
|
# so a plain-http visit dies as "auth request unexpected status:
|
|
# 400" with no hint a login exists. The shared listen set binds :80,
|
|
# so without this the door is open on a port the lock cannot work
|
|
# on. Serving forge or matrix over http is merely insecure rather
|
|
# than broken, so they keep `addSSL` and the asymmetry stays local
|
|
# to the vhost whose correctness depends on the scheme.
|
|
# The gateway drops `addSSL` from a vhost that sets `forceSSL`.
|
|
services.hyperhive.gateway.vhosts."${apex}" = {
|
|
forceSSL = true;
|
|
locations = {
|
|
"/" = {
|
|
root = "${deployCfg.swarm-controller.ui.package}";
|
|
extraConfig = ''
|
|
${swarmAuthRequest}
|
|
${staticHeaders revalidate}
|
|
# SPA: any path the bundle routes client-side is served the
|
|
# entry document rather than a 404 from the filesystem.
|
|
try_files $uri /index.html;
|
|
'';
|
|
};
|
|
# The hashed bundle. A file that is not there is a 404, not the entry
|
|
# document: after a deploy a browser still holding the old page asks for
|
|
# `/static/main-<oldhash>.js`, and HTML answered with 200 left a blank
|
|
# page with only a MIME-type error to explain it.
|
|
"^~ /static/" = {
|
|
root = "${deployCfg.swarm-controller.ui.package}";
|
|
extraConfig = ''
|
|
${swarmAuthRequest}
|
|
${staticHeaders immutable}
|
|
try_files $uri =404;
|
|
'';
|
|
};
|
|
# The files at the root, by their fixed names: the worker (a fixed name
|
|
# is how the browser finds an update), the manifest, the icons. They are
|
|
# revalidated, and one that is not there is a 404 rather than the entry
|
|
# document. One path segment only, so `/api/openapi.json` and the
|
|
# `/.well-known/` answers keep their own locations.
|
|
"~ ^/[^/]+\\.[A-Za-z0-9]+$" = {
|
|
root = "${deployCfg.swarm-controller.ui.package}";
|
|
extraConfig = ''
|
|
${swarmAuthRequest}
|
|
${staticHeaders revalidate}
|
|
try_files $uri =404;
|
|
'';
|
|
};
|
|
# The one unhashed file under `/static/`, so it is revalidated, not
|
|
# immutable.
|
|
"= /static/colors.css" = {
|
|
root = "${deployCfg.swarm-controller.ui.package}";
|
|
extraConfig = ''
|
|
${swarmAuthRequest}
|
|
${staticHeaders revalidate}
|
|
try_files $uri =404;
|
|
'';
|
|
};
|
|
}
|
|
// lib.optionalAttrs servesMatrixDiscovery {
|
|
# Same JSON, headers and `:443` as the hive-domain copy in
|
|
# ./glue-matrix-hive-discovery.nix (see there for why `m.server` names
|
|
# the port). No `auth_request`: peers and clients fetch these unauthenticated.
|
|
"= /.well-known/matrix/client" = {
|
|
extraConfig = ''
|
|
default_type application/json;
|
|
${gatewayCfg.lib.securityHeaders}
|
|
add_header Access-Control-Allow-Origin *;
|
|
return 200 '{"m.homeserver":{"base_url":"https://${matrixCfg.gatewayHost}"}}';
|
|
'';
|
|
};
|
|
"= /.well-known/matrix/server" = {
|
|
extraConfig = ''
|
|
default_type application/json;
|
|
return 200 '{"m.server":"${matrixCfg.gatewayHost}:443"}';
|
|
'';
|
|
};
|
|
}
|
|
// {
|
|
# swarm-controller's whole HTTP surface, including the live
|
|
# `/api/openapi.json` spec — proxied untouched (no URI segment
|
|
# after the socket path, same "pass the request through as-is"
|
|
# shape as the per-hive dashboard's own `/api/` proxy) so the
|
|
# path swarm-controller registered a route at is the path
|
|
# nginx forwards, no prefix-stripping to keep in sync by hand.
|
|
"/api/" = controllerDialAttrs // {
|
|
proxyPass = controllerUpstream;
|
|
# `Remote-User` from authelia's answer, set here so it replaces
|
|
# any the client sent: swarm-controller takes it as the sender of
|
|
# the text the operator types to an agent (`agent_input.rs`).
|
|
# A refused caller that sent an `Authorization` header (`swarmctl
|
|
# --swarm`) gets the 401 itself; a browser still gets the login.
|
|
# The bearer token stops here and never reaches the controller.
|
|
extraConfig = ''
|
|
${authRequest}
|
|
error_page 401 = @swarm_api_unauthorized;
|
|
auth_request_set $authelia_user $upstream_http_remote_user;
|
|
proxy_set_header Remote-User $authelia_user;
|
|
proxy_set_header Authorization "";
|
|
# The SSE streams (terminal, agent state, subagent terminal)
|
|
# must not sit in nginx's buffer. The controller's 15s
|
|
# keep-alive keeps them under nginx's 60s default read timeout.
|
|
proxy_buffering off;
|
|
''
|
|
+ controllerDial;
|
|
};
|
|
# A refused request gets the login page only when it asks for a page.
|
|
# The swarm UI calls `/api/` with `fetch` and `EventSource`, and a
|
|
# cross-origin redirect makes both fail with an error that says nothing
|
|
# about why, so after a session ends every poll, form and stream broke
|
|
# until a reload. Anything that does not ask for `text/html` gets a plain
|
|
# 401 with a `WWW-Authenticate` header, which the UI reads as "log in
|
|
# again" and answers with a reload. The header is also how the UI tells
|
|
# this 401 from one the controller sends for its own reasons.
|
|
# The security headers are repeated inside the `if` block that sets its
|
|
# own `add_header`, which would otherwise drop them.
|
|
"@swarm_api_unauthorized".extraConfig = ''
|
|
${gatewayCfg.lib.securityHeaders}
|
|
if ($http_authorization) {
|
|
${gatewayCfg.lib.securityHeaders}
|
|
add_header WWW-Authenticate '${challenge}' always;
|
|
return 401;
|
|
}
|
|
if ($http_accept ~* "text/html") {
|
|
return 302 ${loginRedirect};
|
|
}
|
|
add_header WWW-Authenticate '${challenge}' always;
|
|
return 401;
|
|
'';
|
|
# The document the challenge names. Public by design: a client reads it
|
|
# before it has a login, and it holds only the names of the swarm's own
|
|
# API and its SSO provider.
|
|
"= ${protectedResourcePath}".extraConfig = ''
|
|
${gatewayCfg.lib.securityHeaders}
|
|
default_type application/json;
|
|
return 200 '${protectedResource}';
|
|
'';
|
|
# ⚠️ THE ONE PROXIED LOCATION ON THIS VHOST WITH NO `auth_request`,
|
|
# and that is deliberate rather than an omission.
|
|
#
|
|
# A forge webhook is a machine POST carrying an HMAC signature
|
|
# and no session cookie. An authelia auth-request subrequest
|
|
# authenticates a *browser session*; there is nothing here for it
|
|
# to check, so guarding this location would not make it safer, it
|
|
# would make it permanently unreachable.
|
|
#
|
|
# What replaces it: swarm-controller verifies the
|
|
# `X-Hub-Signature-256` HMAC over the raw body before looking at
|
|
# anything else, and answers 401 on any mismatch. That check is
|
|
# the access control for this path — see the `webhook` module.
|
|
#
|
|
# Scoped to `/webhook/forge/` rather than `/webhook/` so the
|
|
# carve-out is exactly as wide as the endpoint that justifies it:
|
|
# a future `/webhook/<something-else>` does not inherit the
|
|
# bypass by living under a shared prefix.
|
|
"/webhook/forge/" =
|
|
controllerDialAttrs
|
|
// {
|
|
proxyPass = controllerUpstream;
|
|
}
|
|
// lib.optionalAttrs controllerTcp.enable {
|
|
extraConfig = controllerDial;
|
|
};
|
|
# Swagger UI: same "nginx hosts the themed dist straight from
|
|
# the store, only /api/openapi.json is dynamic" shape as the
|
|
# hive dashboard's `swaggerUiLocations` (./hive-c0re/vhosts.nix).
|
|
"= /api/docs" = {
|
|
extraConfig = ''
|
|
return 301 /api/docs/;
|
|
'';
|
|
};
|
|
# Session identity for the header's profile menu: initials
|
|
# avatar + "who is this" line. `auth_request` tells the
|
|
# browser nothing about *who* (only `/api/` passes it on, to the
|
|
# controller), so the frontend has no other way to learn this.
|
|
# Same-origin proxy straight to authelia's own `GET /api/user/info`
|
|
# (session-cookie authenticated) rather than new
|
|
# swarm-controller code: the cookie is already valid here (the
|
|
# session cookie's domain is the swarm's, shared across every
|
|
# vhost under it — see swarm-authelia.nix), so this is a pure
|
|
# pass-through with nothing for a daemon to add.
|
|
#
|
|
# `=` exact match, not a prefix, so proxy_pass's own URI part
|
|
# (`/api/user/info`) REPLACES the matched request URI rather
|
|
# than being appended to it — same substitution shape as
|
|
# `/__hive_authelia` below, just not `internal` since the
|
|
# frontend calls this one directly.
|
|
"= /api/whoami" = {
|
|
proxyPass = "https://${autheliaCfg.domain}/api/user/info";
|
|
# nixpkgs appends its OWN `Host $host` after extraConfig,
|
|
# which would override verifiedProxyTo's — see the comment
|
|
# on verifiedProxyTo in hive-gateway/vhost-lib.nix.
|
|
recommendedProxySettings = false;
|
|
extraConfig = ''
|
|
${swarmAuthRequest}
|
|
${gatewayCfg.lib.verifiedProxyTo autheliaCfg.domain}
|
|
'';
|
|
};
|
|
"/api/docs/" = {
|
|
alias = "${gatewayCfg.swaggerUiTheme}/";
|
|
extraConfig = ''
|
|
index index.html;
|
|
${swarmAuthRequest}
|
|
'';
|
|
};
|
|
# The subrequest itself. `auth-request` is the implementation
|
|
# name authelia exposes under `/api/authz/`; `/api/verify` is
|
|
# the LEGACY path every older example shows.
|
|
#
|
|
# Header set measured against the pinned binary (4.39.20), not
|
|
# copied: `X-Original-URL` and `X-Original-Method` are present
|
|
# as literals and are what this implementation reads —
|
|
# `X-Forwarded-Uri` does not appear in it at all, so sending it
|
|
# would look like configuration and be dead weight.
|
|
"= /__hive_authelia" = {
|
|
proxyPass = "https://${autheliaCfg.domain}/api/authz/auth-request";
|
|
# nixpkgs appends its OWN `Host $host` after extraConfig,
|
|
# which would override verifiedProxyTo's — see the comment
|
|
# on verifiedProxyTo in hive-gateway/vhost-lib.nix.
|
|
recommendedProxySettings = false;
|
|
extraConfig = ''
|
|
internal;
|
|
${gatewayCfg.lib.verifiedProxyTo autheliaCfg.domain}
|
|
# A subrequest carries no body, and forwarding one here makes
|
|
# authelia read a payload it will never use.
|
|
proxy_pass_request_body off;
|
|
proxy_set_header Content-Length "";
|
|
proxy_set_header X-Original-Method $request_method;
|
|
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|