Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:forgejo [2024/09/11 07:13] – [Installation] willy | services:forgejo [2025/03/13 14:41] (current) – [Forgejo] willy | ||
---|---|---|---|
Line 4: | Line 4: | ||
Easy to install and low maintenance, | Easy to install and low maintenance, | ||
- | Forgejo is the evolution of [[services: | + | Forgejo is the evolution of [[services:obsolete: |
===== Installation ===== | ===== Installation ===== | ||
Line 55: | Line 55: | ||
DB_TYPE = sqlite3 | DB_TYPE = sqlite3 | ||
HOST = 127.0.0.1: | HOST = 127.0.0.1: | ||
- | NAME = gitea | + | NAME = forgejo |
USER = root | USER = root | ||
- | PASSWD = | ||
- | SCHEMA = | ||
- | SSL_MODE = disable | ||
PATH = / | PATH = / | ||
LOG_SQL = false | LOG_SQL = false | ||
Line 65: | Line 62: | ||
[log] | [log] | ||
MODE = file | MODE = file | ||
- | ; ; Either " | ||
LEVEL = info | LEVEL = info | ||
ROOT_PATH = / | ROOT_PATH = / | ||
Line 82: | Line 78: | ||
./forgejo | ./forgejo | ||
</ | </ | ||
+ | |||
+ | One last step is to ensure your **app.ini** is safe if you reinstlal Forgejo. Since i do backup the git repos folder but not the daemons folder, i just move it there and link it back: | ||
+ | <code bash> | ||
+ | cd ~/ | ||
+ | mv app.ini / | ||
+ | ln -s / | ||
+ | </ | ||
+ | |||
+ | Note that your **git** user //~/.ssh// must exist and the permission chain into it must be set properly! | ||
+ | The / | ||
==== Reverse Proxy setup ==== | ==== Reverse Proxy setup ==== | ||
Line 114: | Line 120: | ||
== Using Reverse Proxy authentication === | == Using Reverse Proxy authentication === | ||
- | GITea support reverse proxy authentication. The above NGINX config already set it up, but you need to open GITea settings and go to **Authentication Sources** and replace the existing one (or add a new one) ad **PAM_Auth**. The settings you need are: | + | Forgejo |
* pam_service_name: | * pam_service_name: | ||
- | that's it. | + | that's it. This will work with your SSO. |
==== Autostart ==== | ==== Autostart ==== | ||
Line 129: | Line 135: | ||
description=" | description=" | ||
- | command="/ | + | command="/ |
command_args="" | command_args="" | ||
command_background=" | command_background=" |