nixos: services: nginx: modify example
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Now that `websocketLocations` exists, it makes little sense to use `proxyWebsockets` in an example, so use a different one.
This commit is contained in:
parent
6a1a35a384
commit
60050113bc
|
@ -70,10 +70,13 @@ let
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.attrs; # FIXME: forward type of virtualHosts
|
type = types.attrs; # FIXME: forward type of virtualHosts
|
||||||
example = {
|
example = {
|
||||||
locations."/socket" = {
|
extraConfig = ''
|
||||||
proxyPass = "http://127.0.0.1:8096/";
|
add_header X-Clacks-Overhead "GNU Terry Pratchett";
|
||||||
proxyWebsockets = true;
|
'';
|
||||||
};
|
|
||||||
|
locations."/".extraConfig = ''
|
||||||
|
client_max_body_size 1G;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
default = { };
|
default = { };
|
||||||
description = ''
|
description = ''
|
||||||
|
|
Loading…
Reference in a new issue