You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This role installs and manages [gitea](https://gitea.io)- Git with a cup of tea. A painless self-hosted Git service. Gitea is a community managed lightweight code hosting solution written in Go.
6
+
This role installs and manages [gitea](https://gitea.io)or [forgejo](https://forgejo.org). A painless self-hosted Git service. Gitea is a community managed lightweight code hosting solution written in Go. Forgejo is a fork of it.
@@ -20,17 +21,24 @@ The following code has been tested with the latest Debian Stable, it should work
20
21
vars:
21
22
# Here we assume we are behind a reverse proxy that will
22
23
# handle https for us, so we bind on localhost:3000 using HTTP
24
+
# see https://docs.gitea.io/en-us/reverse-proxies/#nginx
23
25
gitea_fqdn: 'git.example.com'
24
26
gitea_root_url: 'https://git.example.com'
25
27
gitea_protocol: http
26
-
27
28
gitea_start_ssh: true
28
29
```
29
30
30
31
Variables
31
32
-----------
32
33
Here is a deeper insight into the variables of this gitea role. For the exact function of some variables and the possibility to add more options we recommend a look at this [config cheat sheet](https://docs.gitea.io/en-us/config-cheat-sheet/).
33
34
35
+
### Chose between gitea and forgejo
36
+
There is a fork of gitea called forgejo. Why? Read the [forgejo FAQ](https://forgejo.org/faq/).
37
+
You have the option to choose between [gitea](https://gitea.io) and [forgejo](https://forgejo.org) by modifying the ``gitea_fork`` variable.
38
+
| variable name | default value | description |
39
+
| ------------- | ------------- | ----------- |
40
+
| `gitea_fork` | `gitea` | optional choose to install forgejo instead of gitea by setting this value to `forgejo`. |
41
+
34
42
### gitea update mechanism
35
43
To determine which gitea version to install, you can choose between two variants.
36
44
Either you define exactly which release you install. Or you use the option ``latest`` to always install the latest release from the [gitea releases](https://github.com/go-gitea/gitea/releases/latest).
@@ -41,6 +49,7 @@ Either you define exactly which release you install. Or you use the option ``lat
41
49
| `gitea_version` | `latest` | Define either the exact release to install *(eg. `1.16.0`)* or use ``latest`` *(default)* to install the latest release. |
42
50
| `gitea_version_check` | `true` | Check if installed version != `gitea_version` before initiating binary download |
43
51
| `gitea_gpg_key` | `7C9E68152594688862D62AF62D9AE806EC1592E2` | the gpg key the gitea binary is signed with |
52
+
| `gitea_forgejo_gpg_key` | `EB114F5E6C0DC2BCDD183550A4B61A2DC5923710` | the gpg key the forgejo binary is signed with |
44
53
| `gitea_gpg_server` | `hkps://keys.openpgp.org` | A gpg key server where this role can download the gpg key |
45
54
| `gitea_backup_on_upgrade` | `false` | Optionally a backup can be created with every update of gitea. |
46
55
| `gitea_backup_location` | `{{ gitea_home }}/backups/` | Where to store the gitea backup if one is created with this role. |
@@ -54,6 +63,7 @@ Either you define exactly which release you install. Or you use the option ``lat
54
63
| `gitea_home` | `/var/lib/gitea` | Base directory to work |
55
64
| `gitea_user_home` | `{{ gitea_home }}` | home of gitea user |
56
65
| `gitea_executable_path` | `/usr/local/bin/gitea` | Path for gitea executable |
66
+
| `gitea_forgejo_executable_path` | `/usr/local/bin/forgejo` | Path for forgejo executable |
57
67
| `gitea_configuraion_path` | `/etc/gitea` | Where to put the gitea.ini config |
58
68
| `gitea_shell` | `/bin/false` | UNIX shell used by gitea. Set it to `/bin/bash` if you don't use the gitea built-in ssh server. |
59
69
| `gitea_systemd_cap_net_bind_service` | `false` | Adds `AmbientCapabilities=CAP_NET_BIND_SERVICE` to systemd service file |
@@ -97,6 +107,7 @@ Either you define exactly which release you install. Or you use the option ``lat
97
107
| `gitea_enable_repo_signing_extra` | | you can use this variable to pass additional config parameters in the `[repository.signing]` section of the config. |
98
108
99
109
### CORS ([cors](https://docs.gitea.io/en-us/config-cheat-sheet/#cors-cors))
110
+
| variable name | default value | description |
100
111
| ------------- | ------------- | ----------- |
101
112
| `gitea_enable_cors` | `false` | enable cors headers (disabled by default) |
102
113
| `gitea_cors_scheme` | `http` | scheme of allowed requests |
@@ -133,7 +144,6 @@ Either you define exactly which release you install. Or you use the option ``lat
133
144
| `gitea_root_url` | `http://localhost:3000` | Root URL used to access your web app (full URL) |
0 commit comments