Update flake, fix gitea

This commit is contained in:
2023-08-18 19:02:07 +02:00
parent 1ec9c08e22
commit e5b35ab920
2 changed files with 23 additions and 19 deletions

View File

@@ -1,9 +1,9 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
let
cfg = config.services.gitea;
domain = "git.feal.no";
httpPort = 3004;
sshPort = 2222;
/* sshPort = 2222; */
in {
services.gitea = {
enable = true;
@@ -17,7 +17,7 @@ in {
server = {
LANDING_PAGE=''"/felixalb"'';
HTTP_PORT = httpPort;
SSH_PORT = sshPort;
/* SSH_PORT = sshPort; */
SSH_DOMAIN = "voyager.home.feal.no";
DOMAIN = domain;
ROOT_URL = "https://${domain}";
@@ -27,6 +27,7 @@ in {
session.COOKIE_SECURE = true;
packages.ENABLED = false;
packages.CHUNKED_UPLOAD_PATH = "${cfg.stateDir}/tmp/package-upload";
oauth2_client = {
ENABLE_AUTO_REGISTRATION = true;
@@ -51,5 +52,8 @@ in {
# - configure mailer
};
networking.firewall.allowedTCPPorts = [ httpPort sshPort ];
systemd.services.gitea.serviceConfig.WorkingDirectory = lib.mkForce "/var/lib/gitea/work";
networking.firewall.allowedTCPPorts = [ httpPort ];
/* networking.firewall.allowedTCPPorts = [ httpPort sshPort ]; */
}