1# `_utils.mkSimpleProxy`
2`attrSet -> freeformAttrset`
3
4make a simple reverse proxy
5
6takes a set:
7```nix
8{
9 host ? "localhost", # proxying servers on the network
10 port ? null,
11 socketPath ? null,
12 protocol ? "http",
13 location ? "/",
14 websockets ? false,
15 extraConfig ? {}
16}
17```
18
19Provide either a `socketPath` to a UNIX socket or a `port` to connect to the upstream via TCP.
20Note that both of these options are mutually exclusive in that only one can be specified.
21
22It is recommended to override/add attributes with `extraConfig` to
23preserve defaults.
24
25Items in `extraConfig` are merged verbatim to the base attrset with defaults.
26They are overridden based on their priority order (i.e. via `lib.mk{Default,Force,Order}`).