Merge pull request #94609 from 1000101/dokuwiki
nixos/dokuwiki: drop SSL forcing and document incompatibility
This commit is contained in:
commit
0bc37f7cb4
@ -593,6 +593,31 @@ systemd.services.nginx.serviceConfig.ReadWritePaths = [ "/var/www" ];
|
|||||||
When updating Graylog from a version before 3.3.3 make sure to check the Graylog <link xlink:href="https://www.graylog.org/post/announcing-graylog-v3-3-3">release info</link> for information on how to avoid the issue.
|
When updating Graylog from a version before 3.3.3 make sure to check the Graylog <link xlink:href="https://www.graylog.org/post/announcing-graylog-v3-3-3">release info</link> for information on how to avoid the issue.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The <literal>dokuwiki</literal> module has changed to multi-instance, using submodules.
|
||||||
|
Therefore, it is now mandatory to name each instance. Moreover, forcing SSL by default has been dropped, so
|
||||||
|
<literal>nginx.forceSSL</literal> and <literal>nginx.enableACME</literal> are no longer set to <literal>true</literal>.
|
||||||
|
To continue using your service with the original SSL settings, you have to adjust the original config, e.g.:
|
||||||
|
<programlisting>
|
||||||
|
services.dokuwiki = {
|
||||||
|
enable = true;
|
||||||
|
...
|
||||||
|
};
|
||||||
|
</programlisting>
|
||||||
|
To something similar:
|
||||||
|
<programlisting>
|
||||||
|
services.dokuwiki."mywiki" = {
|
||||||
|
enable = true;
|
||||||
|
nginx = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
};
|
||||||
|
...
|
||||||
|
};
|
||||||
|
</programlisting>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -249,22 +249,19 @@ let
|
|||||||
nginx = mkOption {
|
nginx = mkOption {
|
||||||
type = types.submodule (
|
type = types.submodule (
|
||||||
recursiveUpdate
|
recursiveUpdate
|
||||||
(import ../web-servers/nginx/vhost-options.nix { inherit config lib; })
|
(import ../web-servers/nginx/vhost-options.nix { inherit config lib; }) {}
|
||||||
{
|
|
||||||
# Enable encryption by default,
|
|
||||||
options.forceSSL.default = true;
|
|
||||||
options.enableACME.default = true;
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
default = {forceSSL = true; enableACME = true;};
|
default = {};
|
||||||
example = {
|
example = {
|
||||||
serverAliases = [
|
serverAliases = [
|
||||||
"wiki.\${config.networking.domain}"
|
"wiki.\${config.networking.domain}"
|
||||||
];
|
];
|
||||||
enableACME = false;
|
# To enable encryption and let let's encrypt take care of certificate
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
};
|
};
|
||||||
description = ''
|
description = ''
|
||||||
With this option, you can customize the nginx virtualHost which already has sensible defaults for DokuWiki.
|
With this option, you can customize the nginx virtualHost settings.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -276,7 +273,7 @@ in
|
|||||||
services.dokuwiki = mkOption {
|
services.dokuwiki = mkOption {
|
||||||
type = types.attrsOf (types.submodule siteOpts);
|
type = types.attrsOf (types.submodule siteOpts);
|
||||||
default = {};
|
default = {};
|
||||||
description = "Sepcification of one or more dokuwiki sites to service.";
|
description = "Sepcification of one or more dokuwiki sites to serve.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -39,18 +39,10 @@ in {
|
|||||||
services.dokuwiki."site1.local" = {
|
services.dokuwiki."site1.local" = {
|
||||||
aclUse = false;
|
aclUse = false;
|
||||||
superUser = "admin";
|
superUser = "admin";
|
||||||
nginx = {
|
|
||||||
forceSSL = false;
|
|
||||||
enableACME = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
services.dokuwiki."site2.local" = {
|
services.dokuwiki."site2.local" = {
|
||||||
aclUse = true;
|
aclUse = true;
|
||||||
superUser = "admin";
|
superUser = "admin";
|
||||||
nginx = {
|
|
||||||
forceSSL = false;
|
|
||||||
enableACME = false;
|
|
||||||
};
|
|
||||||
templates = [ template-bootstrap3 ];
|
templates = [ template-bootstrap3 ];
|
||||||
plugins = [ plugin-icalevents ];
|
plugins = [ plugin-icalevents ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user