services/roles/gitea
2024-09-19 14:57:47 +02:00
..
defaults update(gitea): bump version to 1.22.2 2024-09-19 14:57:47 +02:00
tasks refactor(gitea): support using forgejo in the role 2023-10-07 22:18:02 +02:00
vars update(gitea): bump version to 1.22.2 2024-09-19 14:57:47 +02:00
README.md feat(gitea): add ansible role for deployment in docker containers 2022-02-11 09:13:45 +01:00

finallycoffee.services.gitea ansible role

Overview

This role deploys gitea using its official available docker image, and is able to setup SSH forwarding from the host to the container (enabling git-over-SSH without the need for a non-standard SSH port while running an SSH server on the host aswell).

Configuration

Email notifications

To enable to send emails, you need to set the following variables, demonstrated here with an SMTP server. A TLS connection is strongly advised, as otherwise, it can be trival to intercept a login to the mail server and record the authentication details, enabling anyone to send mail as if they were your gitea instance.

gitea_config_mailer_enabled: true
# Can be `sendmail` or `smtp`
gitea_config_mailer_type: smtp
# Including the port can be used to force secure smtp (SMTPS)
gitea_config_mailer_host: mail.my-domain.tld:465
gitea_config_mailer_user: gitea
gitea_config_mailer_passwd: very_long_password
gitea_config_mailer_tls: true
gitea_config_mailer_from_addr: "gitea@{{ gitea_domain }}"
# Set `gitea_config_mailer_sendmail_path` when using a sendmail binary
gitea_config_mailer_sendmail_path: /usr/sbin/sendmail

For more information, see the gitea docs on email setup.