From 69adf97b3a79cda16064804410320002e45d9ddd Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 3 Apr 2020 16:52:53 +0200 Subject: [PATCH] gogs: fiddle around with logs and gitea --- configs/workhorse/gogs.nix | 40 +++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/configs/workhorse/gogs.nix b/configs/workhorse/gogs.nix index 112a83d..96fab5f 100644 --- a/configs/workhorse/gogs.nix +++ b/configs/workhorse/gogs.nix @@ -4,8 +4,7 @@ enable = true; statusPage = true; virtualHosts = { - "gogs.${config.networking.hostName}.private" = { - serverAliases = [ "git.${config.networking.hostName}.private" ]; + "git.${config.networking.hostName}.private" = { locations."/" = { proxyPass = "http://${config.networking.hostName}.private:${ toString config.services.gogs.httpPort @@ -33,12 +32,43 @@ START_SSH_SERVER = true SSH_LISTEN_PORT = 2222 - [log] - ; Either "Trace", "Info", "Warn", "Error", "Fatal", default is "Trace" + [log.file] + LEVEL = Warn + + [log.console] + LEVEL = Warn + + [log.sublogger.macaron] LEVEL = Warn ''; }; - backup.all.restic.dirs = [ config.services.gogs.repositoryRoot ]; + + #services.gitea = { + # enable = true; + # appName = "Git"; + # domain = "git.ingolf-wagner.de"; + # httpPort = 3000; + # repositoryRoot = "/home/gitea/repositories"; + # stateDir = "/home/gitea"; + # rootUrl = "https://git.ingolf-wagner.de/"; + # extraConfig = '' + # [service] + # DISABLE_REGISTRATION = true + # SHOW_REGISTRATION_BUTTON = false + # [server] + # SSH_DOMAIN = "git.ingolf-wagner.de" + # SSH_PORT = 443 + # START_SSH_SERVER = true + # SSH_LISTEN_PORT = 2222 + + # [log] + # LEVEL = Warn + # [log.sublogger.macaron] + # LEVEL = Warn + # ''; + #}; + #backup.all.restic.dirs = [ config.services.gitea.repositoryRoot ]; + }