mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/gancio: actually enable ssl by default.
This commit is contained in:
parent
5af6aefbcc
commit
58ec286785
1 changed files with 10 additions and 5 deletions
|
@ -157,11 +157,18 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx = mkOption {
|
nginx = mkOption {
|
||||||
type = types.submodule (import ../web-servers/nginx/vhost-options.nix { inherit config lib; });
|
type = types.submodule (
|
||||||
|
lib.recursiveUpdate (import ../web-servers/nginx/vhost-options.nix { inherit config lib; }) {
|
||||||
|
# enable encryption by default,
|
||||||
|
# as sensitive login credentials should not be transmitted in clear text.
|
||||||
|
options.forceSSL.default = true;
|
||||||
|
options.enableACME.default = true;
|
||||||
|
}
|
||||||
|
);
|
||||||
default = { };
|
default = { };
|
||||||
example = {
|
example = {
|
||||||
enableACME = true;
|
enableACME = false;
|
||||||
forceSSL = true;
|
forceSSL = false;
|
||||||
};
|
};
|
||||||
description = "Extra configuration for the nginx virtual host of gancio.";
|
description = "Extra configuration for the nginx virtual host of gancio.";
|
||||||
};
|
};
|
||||||
|
@ -260,8 +267,6 @@ in
|
||||||
virtualHosts."${cfg.settings.hostname}" = mkMerge [
|
virtualHosts."${cfg.settings.hostname}" = mkMerge [
|
||||||
cfg.nginx
|
cfg.nginx
|
||||||
{
|
{
|
||||||
enableACME = mkDefault true;
|
|
||||||
forceSSL = mkDefault true;
|
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
index = "index.html";
|
index = "index.html";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue