2020-12-26 16:22:59 +01:00
|
|
|
---
|
2023-10-25 22:26:17 +02:00
|
|
|
### mrlesmithjr.ansible-manage-lvm
|
|
|
|
lvm_groups:
|
2024-04-02 21:23:50 +02:00
|
|
|
- vgname: vg_data
|
2023-10-25 22:26:17 +02:00
|
|
|
disks:
|
|
|
|
- /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1
|
|
|
|
create: true
|
|
|
|
lvnames:
|
2024-04-02 21:23:50 +02:00
|
|
|
- lvname: lv_data
|
2023-10-25 22:26:17 +02:00
|
|
|
size: +100%FREE
|
|
|
|
create: true
|
|
|
|
filesystem: xfs
|
|
|
|
mount: true
|
2024-04-02 21:23:50 +02:00
|
|
|
mntp: /var/lib/forgejo
|
2023-10-25 22:26:17 +02:00
|
|
|
manage_lvm: true
|
|
|
|
pvresize_to_max: true
|
2023-10-19 09:32:59 +02:00
|
|
|
|
2024-01-28 16:09:58 +01:00
|
|
|
### mgrote_apt_manage_packages
|
|
|
|
apt_packages_extra:
|
|
|
|
- fail2ban
|
|
|
|
|
2024-04-02 22:08:55 +02:00
|
|
|
### geerlingguy_postgres
|
|
|
|
postgresql_databases:
|
|
|
|
- name: "{{ gitea_db_name }}"
|
|
|
|
postgresql_users:
|
|
|
|
- name: "{{ gitea_db_user }}"
|
|
|
|
password: "{{ gitea_db_password }}"
|
|
|
|
|
2023-10-25 22:26:17 +02:00
|
|
|
### oefenweb.ufw
|
|
|
|
ufw_rules:
|
|
|
|
- rule: allow
|
|
|
|
to_port: 22
|
|
|
|
protocol: tcp
|
|
|
|
comment: 'ssh'
|
|
|
|
from_ip: 0.0.0.0/0
|
2024-02-15 13:52:00 +01:00
|
|
|
- rule: allow
|
|
|
|
to_port: 4949
|
|
|
|
protocol: tcp
|
|
|
|
comment: 'munin'
|
|
|
|
from_ip: 192.168.2.0/24
|
2023-10-25 22:26:17 +02:00
|
|
|
- rule: allow
|
|
|
|
to_port: "{{ gitea_http_port }}"
|
|
|
|
protocol: tcp
|
|
|
|
comment: 'gitea'
|
|
|
|
from_ip: 0.0.0.0/0
|
2020-12-26 16:22:59 +01:00
|
|
|
|
2024-04-02 22:08:55 +02:00
|
|
|
### pyratlabs-ansible-role-gitea
|
2024-04-03 13:25:39 +02:00
|
|
|
# https://git.mgrote.net/ansible-roles-mirrors/pyratlabs-ansible-role-gitea
|
2024-04-02 22:11:58 +02:00
|
|
|
gitea_fork: "forgejo"
|
2024-04-02 22:08:55 +02:00
|
|
|
# gitea update
|
|
|
|
gitea_version: "1.21.7-0" # alt zum renovate testen
|
|
|
|
gitea_version_check: true
|
|
|
|
gitea_backup_on_upgrade: false
|
|
|
|
# gitea in the linux world
|
|
|
|
gitea_group: "gitea"
|
2023-10-25 22:26:17 +02:00
|
|
|
gitea_user: "gitea"
|
|
|
|
gitea_home: "/var/lib/gitea"
|
2024-04-02 22:08:55 +02:00
|
|
|
gitea_user_home: "{{ gitea_home }}"
|
|
|
|
# config liegt in /etc/gitea/gitea.ini
|
2024-04-03 11:18:45 +02:00
|
|
|
gitea_configuration_path: "/etc/gitea" # anpassen
|
2024-04-02 22:08:55 +02:00
|
|
|
gitea_app_name: "forgejo"
|
2024-04-03 13:25:39 +02:00
|
|
|
gitea_fqdn: "git.mgrote.net"
|
2024-04-02 22:08:55 +02:00
|
|
|
# ssh
|
|
|
|
gitea_ssh_port: 22 # assuming the host SSH server is running on port 22
|
|
|
|
gitea_start_ssh: false # to not start the built-in SSH server
|
|
|
|
gitea_shell: "/bin/bash"
|
|
|
|
# Repository
|
|
|
|
gitea_default_branch: "master"
|
|
|
|
gitea_default_private: "public"
|
|
|
|
gitea_repository_root: "{{ gitea_home }}/repos"
|
|
|
|
# ui
|
2023-10-25 22:26:17 +02:00
|
|
|
gitea_show_user_email: false
|
2024-04-02 22:08:55 +02:00
|
|
|
# server
|
2024-04-02 22:18:44 +02:00
|
|
|
gitea_protocol: "http"
|
|
|
|
gitea_http_domain: "{{ gitea_fqdn }}"
|
2024-04-02 22:15:46 +02:00
|
|
|
gitea_http_port: "3000"
|
|
|
|
gitea_http_listen: "0.0.0.0"
|
2024-04-03 13:25:39 +02:00
|
|
|
gitea_root_url: https://git.mgrote.net
|
2024-04-02 22:08:55 +02:00
|
|
|
# database
|
2024-04-03 11:36:51 +02:00
|
|
|
gitea_db_type: "postgres"
|
|
|
|
gitea_db_host: "localhost"
|
|
|
|
gitea_db_name: "gitea"
|
|
|
|
gitea_db_user: "gitea"
|
2024-04-02 22:26:18 +02:00
|
|
|
gitea_db_password: "{{ lookup('keepass', 'gitea_db_password', 'password') }}"
|
2024-04-02 22:08:55 +02:00
|
|
|
# indexer
|
2023-10-25 22:26:17 +02:00
|
|
|
gitea_repo_indexer_enabled: true
|
2024-04-02 22:08:55 +02:00
|
|
|
# security
|
|
|
|
gitea_disable_webhooks: false
|
|
|
|
gitea_password_check_pwn: false
|
2024-04-02 22:26:18 +02:00
|
|
|
gitea_internal_token: "{{ lookup('keepass', 'gitea_internal_token', 'password') }}"
|
|
|
|
gitea_secret_key: "{{ lookup('keepass', 'gitea_secret_key', 'password') }}"
|
2024-04-02 22:08:55 +02:00
|
|
|
# service
|
2024-04-03 11:29:13 +02:00
|
|
|
gitea_disable_registration: true
|
2024-04-02 22:30:52 +02:00
|
|
|
gitea_register_email_confirm: true
|
2024-04-02 22:08:55 +02:00
|
|
|
gitea_require_signin: false
|
|
|
|
gitea_default_keep_mail_private: true
|
|
|
|
gitea_enable_captcha: false
|
2024-04-03 11:29:13 +02:00
|
|
|
gitea_show_registration_button: false
|
2024-04-02 22:08:55 +02:00
|
|
|
gitea_enable_notify_mail: true
|
2024-04-03 11:35:41 +02:00
|
|
|
gitea_default_user_visibility: "public"
|
2024-04-02 22:08:55 +02:00
|
|
|
gitea_show_milestones_dashboard_page: false
|
2024-04-03 11:35:41 +02:00
|
|
|
gitea_default_allow_create_organization: true
|
|
|
|
gitea_default_org_visibility: "public"
|
2024-04-02 22:08:55 +02:00
|
|
|
# Mailer
|
2023-10-25 22:26:17 +02:00
|
|
|
gitea_mailer_enabled: true
|
2024-04-03 11:36:51 +02:00
|
|
|
gitea_mailer_protocol: "smtp"
|
|
|
|
gitea_mailer_smtp_addr: "docker10.mgrote.net"
|
2024-01-28 16:09:58 +01:00
|
|
|
gitea_mailer_smtp_port: 1025
|
|
|
|
gitea_mailer_from: "gitea@mgrote.net"
|
2024-04-03 13:25:50 +02:00
|
|
|
gitea_subject_prefix: "git.mgrote.net - "
|
2024-04-02 22:08:55 +02:00
|
|
|
# log
|
|
|
|
gitea_log_systemd: true
|
|
|
|
gitea_log_level: "Info"
|
|
|
|
# Metrics
|
|
|
|
gitea_metrics_enabled: false
|
|
|
|
# Federation
|
|
|
|
gitea_federation_enabled: false
|
|
|
|
# Packages
|
|
|
|
gitea_packages_enabled: false
|
|
|
|
# actions
|
|
|
|
gitea_actions_enabled: false
|
2023-10-25 22:26:17 +02:00
|
|
|
gitea_extra_config: |
|
2024-04-03 13:58:40 +02:00
|
|
|
; webhook: wird für drone benötigt, sonst wird der Webhook nicht "gesendet"
|
2023-10-25 22:26:17 +02:00
|
|
|
[webhook]
|
2023-11-25 19:08:24 +01:00
|
|
|
ALLOWED_HOST_LIST = *.mgrote.net
|
2024-04-03 13:53:35 +02:00
|
|
|
; für Import/Migration aus anderen Git-Systemen
|
2024-04-03 12:35:22 +02:00
|
|
|
[migrations]
|
|
|
|
ALLOWED_DOMAINS = *
|
2024-04-02 22:26:18 +02:00
|
|
|
# oauth2
|
|
|
|
gitea_oauth2_jwt_secret: "{{ lookup('keepass', 'gitea_oauth2_jwt_secret', 'password') }}"
|
2024-04-02 22:08:55 +02:00
|
|
|
# Fail2Ban configuration
|
|
|
|
gitea_fail2ban_enabled: true
|
|
|
|
gitea_fail2ban_jail_maxretry: "3"
|
|
|
|
gitea_fail2ban_jail_findtime: "300"
|
|
|
|
gitea_fail2ban_jail_bantime: "600"
|
|
|
|
gitea_fail2ban_jail_action: "iptables-allports"
|