An Ansible Playbook for deploying your own self-hosted Gitea instance
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
Theodotos Andreou fd562c3235 Initial Commit 5年前
templates Initial Commit 5年前
vars Initial Commit 5年前
.gitignore Initial Commit 5年前
LICENSE Initial Commit 5年前 Initial Commit 5年前
deploy_gitea.yml Initial Commit 5年前

Setting up a Gitea code hosting platform

Gitea is a self-hosted Git-based Code Hosting Platform and a nice alternative to Github and other proprietary services. You can use this Ansible Playbook to host your own Code Hosting Platform under your own control.

This setup offers:

  • Gitea
  • PostgreSQL backend
  • Nginx reverse proxy
  • Fail2Ban Gitea protection
  • HTTPS by Let's Encrypt


  • A Debian or Ubuntu machine.
  • A publicly available FQDN:	300	IN	A

Deploy gitea

Clone the repository:

$ git clone
$ cd ansible-deploy-gitea

Prepare a vars/all.yml file (you can use vars/all.yml.example as reference):

# vars/all.yml
gitea_db: giteadb
gitea_db_user: giteadbuser
gitea_version: 1.4.2

Adjusts the host(s) in deploy_gitea.yml and run the Playbook:

$ ansible-playbook deploy_gitea.yml

When done rush to First one to create an account gets to be an admin!