nixos/mediawiki: update url option defaultText

This commit is contained in:
Sandro 2023-11-23 11:35:47 +01:00 committed by Jörg Thalheim
parent 78112a98f3
commit e580ab8c3e

View File

@ -230,11 +230,8 @@ in
"${if hasSSL config.services.nginx.virtualHosts.${cfg.nginx.hostName} then "https" else "http"}://${cfg.nginx.hostName}"
else
"http://localhost";
defaultText = literalExpression ''
if cfg.webserver == "apache" then
"''${if cfg.httpd.virtualHost.addSSL || cfg.httpd.virtualHost.forceSSL || cfg.httpd.virtualHost.onlySSL then "https" else "http"}://''${cfg.httpd.virtualHost.hostName}"
else
"http://localhost";
defaultText = ''
if "mediawiki uses ssl" then "{"https" else "http"}://''${cfg.hostName}" else "http://localhost";
'';
example = "https://wiki.example.org";
description = lib.mdDoc "URL of the wiki.";