Many updates.

This commit is contained in:
Darren 'Tadgy' Austin 2024-07-06 15:48:30 +01:00
commit 7ccb1aa296
37 changed files with 96 additions and 43 deletions

1
etc/sv/forgejo/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/supervise

1
etc/sv/forgejo/log/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/supervise

2
etc/sv/forgejo/log/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec vlogger -t forgejo -p daemon

13
etc/sv/forgejo/run Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
exec 2>&1
# USER and HOME are needed because gitea doesn't actually check the user it
# runs as, but instead just grabs the variables from the variables.
export USER=_forgejo
export HOME=/data/var/forgejo
# gitea needs to run from its home for SSH to work properly
export GITEA_WORK_DIR="${HOME}"
cd "${HOME}"
exec chpst -u _forgejo:_forgejo /opt/bin/forgejo web --config /etc/forgejo.conf 2>&1