From fe1a009619bb615f564a64ae6e678e82d643319b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 15 Mar 2024 16:50:38 +0100 Subject: [PATCH] forgejo --- rtfd/index.rst | 1 + rtfd/public/forgejo/index.rst | 58 +++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 rtfd/public/forgejo/index.rst diff --git a/rtfd/index.rst b/rtfd/index.rst index 33709ed..a9328fc 100644 --- a/rtfd/index.rst +++ b/rtfd/index.rst @@ -27,6 +27,7 @@ RTFD public/fcgiwrap/index public/ffmpeg/index public/firefox/index + public/forgejo/index public/git/index public/git-bash/index public/gitlab-ci/index diff --git a/rtfd/public/forgejo/index.rst b/rtfd/public/forgejo/index.rst new file mode 100644 index 0000000..d59076f --- /dev/null +++ b/rtfd/public/forgejo/index.rst @@ -0,0 +1,58 @@ +******* +Forgejo +******* + +Packages +======== + +* git +* git-lfs + +Users +===== + +.. code-block:: + + adduser \ + --disabled-password \ + --group \ + --home '/home/git' \ + --shell '/usr/bin/bash' \ + --system \ + git + +Files +===== + +* /etc/systemd/system/forgejo.service +* /usr/local/bin/forgejo + +Config +====== + +.. code-block:: + + mkdir '/etc/forgejo' + chown root:git '/etc/forgejo' + chmod 770 '/etc/forgejo' + +Data +==== + +.. code-block:: + + mkdir '/var/lib/forgejo' + chown git:git '/var/lib/forgejo' + chmod 750 '/var/lib/forgejo' + +Enable +====== + +.. code-block:: + + systemctl enable forgejo + +Interface +========= + +* http://localhost:3000