nixos/gancio: set default value for settings.baseurl
This commit is contained in:
parent
432bfec026
commit
3a33b6c3a8
@ -54,9 +54,12 @@ in
|
||||
};
|
||||
baseurl = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
example = "/gancio";
|
||||
description = "The URL path under which the server is reachable.";
|
||||
default = "http${
|
||||
lib.optionalString config.services.nginx.virtualHosts."${cfg.settings.hostname}".enableACME "s"
|
||||
}://${cfg.settings.hostname}";
|
||||
defaultText = lib.literalExpression ''"https://''${cfg.settings.hostname}"'';
|
||||
example = "https://demo.gancio.org/gancio";
|
||||
description = "The full URL under which the server is reachable.";
|
||||
};
|
||||
server = {
|
||||
socket = mkOption {
|
||||
|
Loading…
Reference in New Issue
Block a user