Change gitea ssh port.
This commit is contained in:
parent
7d90587392
commit
60424d6ff2
3 changed files with 14 additions and 2 deletions
|
|
@ -21,15 +21,20 @@ in {
|
|||
|
||||
ssh-port = mkOption {
|
||||
type = lib.types.port;
|
||||
default = 2222;
|
||||
default = 22;
|
||||
description = ''
|
||||
What external port to serve over.
|
||||
Where ssh is available.
|
||||
'';
|
||||
};
|
||||
|
||||
domain = mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
|
||||
ssh-domain = mkOption {
|
||||
type = lib.types.str;
|
||||
default = cfg.domain;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
@ -49,6 +54,7 @@ in {
|
|||
HTTP_PORT = cfg.port;
|
||||
DOMAIN = cfg.domain;
|
||||
ROOT_URL = "https://${cfg.domain}";
|
||||
SSH_DOMAIN = cfg.ssh-domain;
|
||||
SSH_PORT = cfg.ssh-port;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue