broke out root_url option for forgejo
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
{
|
||||
options.forgejo = {
|
||||
enable = lib.mkEnableOption "Enable Forgejo backed with PostgreSQL";
|
||||
root_url = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
|
||||
port = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
@@ -52,7 +55,7 @@
|
||||
{
|
||||
HTTP_PORT = cfg.port;
|
||||
DISABLE_SSH = true;
|
||||
ROOT_URL = "https://forgejo.john-stream.com";
|
||||
ROOT_URL = cfg.root_url;
|
||||
}
|
||||
(lib.mkIf cfg.https {
|
||||
PROTOCOL = "https";
|
||||
|
||||
Reference in New Issue
Block a user