broke out root_url option for forgejo

This commit is contained in:
John Lancaster
2026-04-04 13:51:40 -05:00
parent c1e00a7c45
commit 1196d69778
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -7,6 +7,9 @@
{ {
options.forgejo = { options.forgejo = {
enable = lib.mkEnableOption "Enable Forgejo backed with PostgreSQL"; enable = lib.mkEnableOption "Enable Forgejo backed with PostgreSQL";
root_url = lib.mkOption {
type = lib.types.str;
};
port = lib.mkOption { port = lib.mkOption {
type = lib.types.port; type = lib.types.port;
@@ -52,7 +55,7 @@
{ {
HTTP_PORT = cfg.port; HTTP_PORT = cfg.port;
DISABLE_SSH = true; DISABLE_SSH = true;
ROOT_URL = "https://forgejo.john-stream.com"; ROOT_URL = cfg.root_url;
} }
(lib.mkIf cfg.https { (lib.mkIf cfg.https {
PROTOCOL = "https"; PROTOCOL = "https";
+1
View File
@@ -52,6 +52,7 @@ in
}; };
forgejo = { forgejo = {
enable = true; enable = true;
root_url = "https://forgejo.john-stream.com";
https = true; https = true;
port = 443; port = 443;
}; };