Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
nixos/nginx: add upstreams examples
I am not fully sure if they are fully correct but they deployed the right syntax.
  • Loading branch information
SuperSandro2000 committed Apr 4, 2021
1 parent 1222c82 commit de4b124
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nixos/modules/services/web-servers/nginx/default.nix
Expand Up @@ -662,6 +662,7 @@ in
Defines the address and other parameters of the upstream servers.
'';
default = {};
example = { "127.0.0.1:8000" = {}; };
};
extraConfig = mkOption {
type = types.lines;
Expand All @@ -676,6 +677,13 @@ in
Defines a group of servers to use as proxy target.
'';
default = {};
example = {
"backend_server" = {
servers = { "127.0.0.1:8000" = {}; };
extraConfig = ''
keepalive 16;
'';
};
};

virtualHosts = mkOption {
Expand Down

0 comments on commit de4b124

Please sign in to comment.