Hi,
this PR adds the [xsrv.gitea](https://github.com/nodiscc/xsrv/tree/master/roles/gitea) ansible role, which can be used to deploy Gitea on any Debian-based Linux machine.
The role can be used from the [xsrv](https://xsrv.readthedocs.io/en/latest/) command-line tool/ansible wrapper, or with ansible [command-line](https://docs.ansible.com/ansible/latest/user_guide/command_line_tools.html) tools. Optionally it integrates with [netdata](https://github.com/nodiscc/xsrv/tree/master/roles/monitoring_netdata) for instance health monitoring, [apache](https://github.com/nodiscc/xsrv/tree/master/roles/apache) for reverse proxy and SSL/TLS certificate management, [rsnapshot](https://github.com/nodiscc/xsrv/tree/master/roles/backup) for automatic backups, and [postgresql](https://github.com/nodiscc/xsrv/tree/master/roles/postgresql) as a RDBMS.
Detailed installation/configuration documentation can be found at https://xsrv.readthedocs.io/en/latest/installation.html, but here is the short version using ansible command-line tools and self-signed certificates:
```bash
# create a project directory
$ mkdir -p ~/playbooks/myproject && cd ~/playbooks/myproject
# install ansible in a python virtualenv
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip3 install ansible
```
Create required files and directories (replace my.CHANGEME.org with the address of the server where gitea will be deployed, and other CHANGEME values with values of your choice)
```yaml
# requirements.yml
collections:
- name: https://gitlab.com/nodiscc/xsrv.git
type: git
version: release # or master to get the latest, development version
```
```yaml
# inventory.yml
all:
hosts:
my.CHANGEME.org:
```
```yaml
# playbook.yml
- hosts: my.CHANGEME.org
roles:
- nodiscc.xsrv.common # (optional) base server setup/hardening/firewall/bruteforce prevention
- nodiscc.xsrv.monitoring # (optional) server monitoring, log aggregation
- nodiscc.xsrv.backup # (optional) automatic backups
- nodiscc.xsrv.apache
- nodiscc.xsrv.postgresql
- nodiscc.xsrv.gitea
```
```yaml
# $ mkdir host_vars/my.CHANGEME.org
# host_vars/my.CHANGEME.org/my.CHANGEME.org.yml
#ansible_ssh_port: 2234 # SSH port, if different from 22
#ansible_host: 1.2.3.4 # SSH server address, if my.CHANGEME.org cannot be resolved from DNS
gitea_fqdn: "git.CHANGEME.org" # domain name of the gitea instance
```
```yaml
# $ ansible-vault edit host_vars/my.CHANGEME.org/my.CHANGEME.org.vault.yml
ansible_become_pass: "CHANGEME" # sudo password
gitea_admin_username: "CHANGEME"
gitea_admin_password: "CHANGEME"
gitea_admin_email: "CHANGEME@CHANGEME.org"
gitea_secret_key: "CHANGEME64"
gitea_internal_token: "CHANGEME160"
gitea_oauth2_jwt_secret: "CHANGEME43"
gitea_lfs_jwt_secret: "CHANGEME43"
```
```bash
# make the role/collection available to the ansible project
$ ansible-galaxy collection install --force -r requirements.yml
# deploy the role
$ ansible-playbook -i inventory.yml playbook.yml
```
See [defaults/main.yml](https://github.com/nodiscc/xsrv/blob/master/roles/gitea/defaults/main.yml) for all available configuration variables.
I use the role to manage multiple environments/instances for a few years without problems and will keep maintaining it in the foreseeable future.
Let me know if you need additional information.
Reviewed-on: https://gitea.com/gitea/awesome-gitea/pulls/97
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: pat-s <pat-s@noreply.gitea.io>
Co-authored-by: nodiscc <nodiscc@noreply.gitea.io>
Co-committed-by: nodiscc <nodiscc@noreply.gitea.io>
hi there,
hoping to contribute my theme and that everyone enjoys it :)
...although it is forked from Red Silver, it is quite different.
it uses Gitea's default theme but with some colors from Gitea-Red-Silver
Signed-off-by: saegl5 <saegl5@noreply.gitea.io>
Reviewed-on: https://gitea.com/gitea/awesome-gitea/pulls/95
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: pat-s <pat-s@noreply.gitea.io>
Co-authored-by: saegl5 <saegl5@noreply.gitea.io>
Co-committed-by: saegl5 <saegl5@noreply.gitea.io>
See preview on this site: https://git.sainnhe.dev/
Note that currently this theme only supports Gitea >= 1.18.0
Reviewed-on: https://gitea.com/gitea/awesome-gitea/pulls/91
Reviewed-by: Gusted <williamzijl7@hotmail.com>
Reviewed-by: John Olheiser <john+gitea@jolheiser.com>
Co-authored-by: Sainnhe Park <sainnhe@gmail.com>
Co-committed-by: Sainnhe Park <sainnhe@gmail.com>
Bot for mailing list mirroring of Gitea issues. Allow people to submit
issues on repositories using only e-mail without signing up.
- https://git.meli.delivery/meli/issue-bot
- https://github.com/meli/issue-bot
Co-authored-by: Manos Pitsidianakis <manos@pitsidianak.is>
Reviewed-on: https://gitea.com/gitea/awesome-gitea/pulls/87
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: epilys <epilys@noreply.gitea.io>
Co-committed-by: epilys <epilys@noreply.gitea.io>
[Dark Arc](https://github.com/Jieiku/theme-dark-arc-gitea) is a new theme I created, based on arc-green, I made backgrounds and wide areas darker in order to increase the contrast against the text. This helps make it more readable for me.
Co-authored-by: Jieiku <106644+Jieiku@users.noreply.github.com>
Reviewed-on: https://gitea.com/gitea/awesome-gitea/pulls/73
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: pat-s <pat-s@noreply.gitea.io>
Co-authored-by: jieiku <jieiku@noreply.gitea.io>
Co-committed-by: jieiku <jieiku@noreply.gitea.io>
Just a yunohost package I found on the web
Reviewed-on: https://gitea.com/gitea/awesome-gitea/pulls/67
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: qwerty287 <qwerty287@noreply.gitea.io>
Co-committed-by: qwerty287 <qwerty287@noreply.gitea.io>
It has changed for a while now, the URL is outdated.
Reviewed-on: https://gitea.com/gitea/awesome-gitea/pulls/62
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Nulo <nulo@noreply.gitea.io>
Co-committed-by: Nulo <nulo@noreply.gitea.io>
Add link to docs about how to install drone and agola with gitea
Signed-off-by: a1012112796 <1012112796@qq.com>
Reviewed-on: https://gitea.com/gitea/awesome-gitea/pulls/39
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: 6543 <6543@obermui.de>
Co-Authored-By: 赵智超 <1012112796@qq.com>
Co-Committed-By: 赵智超 <1012112796@qq.com>