broke out root_url option for forgejo
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user