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.
This commit is contained in:
parent
a6a48806c4
commit
880df6560c
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue