nixos/nginx: add locations."name".uwsgiPass and related options and use it
This commit is contained in:
@@ -56,6 +56,16 @@ with lib;
|
||||
'';
|
||||
};
|
||||
|
||||
uwsgiPass = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "unix:/run/example/example.sock";
|
||||
description = ''
|
||||
Adds uwsgi_pass directive and sets recommended proxy headers if
|
||||
recommendedUwsgiSettings is enabled.
|
||||
'';
|
||||
};
|
||||
|
||||
index = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
@@ -137,5 +147,14 @@ with lib;
|
||||
Enable recommended proxy settings.
|
||||
'';
|
||||
};
|
||||
|
||||
recommendedUwsgiSettings = mkOption {
|
||||
type = types.bool;
|
||||
default = config.services.nginx.recommendedUwsgiSettings;
|
||||
defaultText = literalExpression "config.services.nginx.recommendedUwsgiSettings";
|
||||
description = ''
|
||||
Enable recommended uwsgi settings.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user