diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-01-03T22·21+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-01-03T22·21+0100 |
commit | 880df6560cc644dbe6d721d690cb00c62cd86e11 (patch) | |
tree | b3fce713554ad5ddf1c8489afd45cb1f84560025 /nix/tazserve.nix | |
parent | a6a48806c4a870965d83cd936a323fea9ff19c54 (diff) |
fix(nix): Fix Gogs SSH access
The Gogs developers got it into their head that trying to write things to some relative path from the binary location is a sensible thing to do (spoiler: it's not). Due to their weird "GOGS_CUSTOM" directory which seems to only sometimes be configurable by environment variables, the command used to handle SSH requests failed because it attempted to write logs into the Nix store. This works around the issue by hardcoding the log file root path in the Gogs configuration.
Diffstat (limited to 'nix/tazserve.nix')
-rw-r--r-- | nix/tazserve.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nix/tazserve.nix b/nix/tazserve.nix index f9aee1a57032..8fbb950b0d4c 100644 --- a/nix/tazserve.nix +++ b/nix/tazserve.nix @@ -50,6 +50,10 @@ in { cookieSecure = true; domain = "git.tazj.in"; rootUrl = "https://git.tazj.in/"; + extraConfig = '' + [log] + ROOT_PATH = /var/lib/gogs/log + ''; }; # Set up Gemma |