voyager: adjust gitea

This commit is contained in:
Felix Albrigtsen 2023-06-29 23:31:55 +02:00
parent e7347ff4dc
commit 61ae9b1c22
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ let
cfg = config.services.gitea; cfg = config.services.gitea;
domain = "git.feal.no"; domain = "git.feal.no";
httpPort = 3004; httpPort = 3004;
/* sshPort = 2222; */
in { in {
services.gitea = { services.gitea = {
enable = true; enable = true;
@ -16,6 +17,8 @@ in {
server = { server = {
LANDING_PAGE=''"/felixalb"''; LANDING_PAGE=''"/felixalb"'';
HTTP_PORT = httpPort; HTTP_PORT = httpPort;
/* SSH_PORT = sshPort; */
SSH_DOMAIN = "voyager.home.feal.no";
DOMAIN = domain; DOMAIN = domain;
ROOT_URL = "https://${domain}"; ROOT_URL = "https://${domain}";
}; };
@ -48,5 +51,6 @@ in {
# - configure mailer # - configure mailer
}; };
/* networking.firewall.allowedTCPPorts = [ httpPort sshPort ]; */
networking.firewall.allowedTCPPorts = [ httpPort ]; networking.firewall.allowedTCPPorts = [ httpPort ];
} }