Skip to content

Commit

Permalink
nixos/gancio: set default value for settings.baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgi committed Sep 10, 2024
1 parent 58cfe6f commit 75957a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nixos/modules/services/web-apps/gancio.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ in
};
baseurl = mkOption {
type = types.str;
default = "";
example = "/gancio";
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 URL path under which the server is reachable.";
};
server = {
Expand Down

0 comments on commit 75957a6

Please sign in to comment.