feat(site): add preview option schema
This commit is contained in:
parent
dfd28d637a
commit
df70d61664
1 changed files with 21 additions and 0 deletions
|
|
@ -85,6 +85,27 @@ let
|
|||
default = [ "forgejo.service" ];
|
||||
description = "Systemd units to wait for before building.";
|
||||
};
|
||||
|
||||
preview = {
|
||||
enable = lib.mkEnableOption "TinyAuth-protected preview of this site";
|
||||
|
||||
branch = mkOption {
|
||||
type = types.str;
|
||||
default = "preview";
|
||||
};
|
||||
|
||||
domain = mkOption {
|
||||
type = types.str;
|
||||
default = "0${name}.ily.rs";
|
||||
description = "Preview domain. Defaults to 0<name>.ily.rs.";
|
||||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.nullOr types.port;
|
||||
default = null;
|
||||
description = "Port for preview Node.js server. Required when parent static = false.";
|
||||
};
|
||||
};
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue