From db9d2b5a8a95344fe77593c238ee47da7816d22c Mon Sep 17 00:00:00 2001 From: phire Date: Thu, 1 Jul 2021 20:44:22 +0200 Subject: Add gitea --- pix/gitea-push-create.png | Bin 0 -> 6546 bytes pix/gitea-setup.png | Bin 0 -> 222940 bytes pix/gitea.svg | 31 +++++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 pix/gitea-push-create.png create mode 100644 pix/gitea-setup.png create mode 100644 pix/gitea.svg (limited to 'pix') diff --git a/pix/gitea-push-create.png b/pix/gitea-push-create.png new file mode 100644 index 0000000..ca79c71 Binary files /dev/null and b/pix/gitea-push-create.png differ diff --git a/pix/gitea-setup.png b/pix/gitea-setup.png new file mode 100644 index 0000000..adaacfa Binary files /dev/null and b/pix/gitea-setup.png differ diff --git a/pix/gitea.svg b/pix/gitea.svg new file mode 100644 index 0000000..9df6b83 --- /dev/null +++ b/pix/gitea.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + -- cgit v1.2.3 From a65c8dfc935f6e0780412d31520760f21f28ba79 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 1 Jul 2021 16:14:01 -0400 Subject: gitea tweaks, img rmd --- gitea.html | 27 +++++++++++++++++++-------- pix/gitea-setup.png | Bin 222940 -> 0 bytes 2 files changed, 19 insertions(+), 8 deletions(-) delete mode 100644 pix/gitea-setup.png (limited to 'pix') diff --git a/gitea.html b/gitea.html index ae7c770..88738b2 100644 --- a/gitea.html +++ b/gitea.html @@ -13,8 +13,9 @@
-

Gitea allows you to self-host your git repositories similar to bare repositories, but comes with additional features that you might know from GitHub, such as issues, pull requests or multiple users. Its advantage over GitLab – another Free Software GitHub clone – is that it is much more lightweight and easier to setup.

+

Gitea allows you to self-host your git repositories similar to bare repositories, but comes with additional features that you might know from GitHub, such as issues, pull requests or multiple users. Its advantage over GitLab—another Free Software GitHub clone—is that it is much more lightweight and easier to setup.

Head over to gitea.com to see what it looks like in practice.

+

Although Gitea is lighter than Gitlab, if you have a VPS with only 512MB of RAM, you will probably have to upgrade. Gitea is more memory-intensive than having just a bare git repository.

Installing Gitea

First install a few dependencies:

@@ -42,9 +43,9 @@ apt install gitea server { listen 443 ssl; listen [::]:443 ssl; - ssl_certificate /etc/ssl/nginx/git.landchad.net.crt; - ssl_certificate_key /etc/ssl/nginx/git.landchad.net.key; - server_name git.landchad.net; + ssl_certificate /etc/ssl/nginx/git.example.org.crt; + ssl_certificate_key /etc/ssl/nginx/git.example.org.key; + server_name git.example.org; location / { proxy_pass http://localhost:3000/; # The / is important! proxy_redirect off; @@ -60,20 +61,30 @@ server {

Setting up Gitea

-

If everything worked fine you should now see a setup screen like this when you go to your configured domain in the browser. The options should be pretty self-explanatory, it is only important to select SQLite3 and to replace the base url and SSH server domain with your own. Here's an example:

+

If everything worked fine you should now see a setup screen when you go to your configured domain in the browser. The options should be pretty self-explanatory, it is only important to select SQLite3 and to replace the base url and SSH server domain with your own.

- -

Note: These settings can be changed in a configuration file later so don't worry about making wrong decisions right now.

+
+
Database Type:
+
SQLite3
+
SSH Server Domain:
+
git.example.org
+
Gitea Base URL:
+
git.example.org
+
+ +

These and other settings can be changed in a configuration file later so don't worry about making wrong decisions right now.

After clicking the install button you should now be able to log into your Gitea instance with the account you just created! Explore the settings for more things to do, such as setting up your SSH keys.

+

If Gitea does not load fully and has random errors, it is possible that you need to increase your available memory on your VPS. This can usually be done on your VPS-provider's website without too much trouble.

+

A few extras

Automatically create a new repo on push

This is an incredicly useful feature for me. Open up /etc/gitea/app.ini and add DEFAULT_PUSH_CREATE_PRIVATE = true to the repository section like so:


If you now add a remote to a repository like this

-
git remote add origin 'ssh://gitea@git.landchad.net/chad/coolproject.git'
+
git remote add origin 'ssh://gitea@git.example.org/username/coolproject.git'

and push, Gitea will automatically create a private coolproject repository in your account!

Change tab-width

diff --git a/pix/gitea-setup.png b/pix/gitea-setup.png deleted file mode 100644 index adaacfa..0000000 Binary files a/pix/gitea-setup.png and /dev/null differ -- cgit v1.2.3